Difference between revisions of "Nuxt"

From RHS Wiki
Jump to navigation Jump to search
(Created page with "=== Create project: === <syntaxhighlight lang="bash"> npx nuxi@latest init <project name> cd <project name> npm install </syntaxhighlight> === Configuration: === nuxt.config...")
Tag: visualeditor
 
m
Tag: visualeditor
Line 1: Line 1:
=== Create project: ===
+
===Create project:===
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
npx nuxi@latest init <project name>
 
npx nuxi@latest init <project name>
Line 7: Line 7:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
=== Configuration: ===
+
===Configuration:===
 
nuxt.config.(js | ts | mjs) file
 
nuxt.config.(js | ts | mjs) file
 +
 +
<br />
 +
 +
=== Pages directory ===
 +
you create your pages here, each file will be treated as a route, ej: pages/index.vue; pages/index.ts; pages/index.tsx will generate your / route
 +
<br />

Revision as of 09:44, 18 June 2025

Create project:

npx nuxi@latest init <project name>
cd <project name>
npm install

Configuration:

nuxt.config.(js | ts | mjs) file


Pages directory

you create your pages here, each file will be treated as a route, ej: pages/index.vue; pages/index.ts; pages/index.tsx will generate your / route