npm create vite@latest crypto-dash-ui -- --template vue-ts
cd crypto-dash-ui
npm i && npm run dev
The template uses Vue 3 <script setup>
SFCs (script setup docs). More info on the recommended Project Setup and IDE Support can be found in the Vue Docs TypeScript Guide.
- VS Code + Vue - Official (previously Volar) and disable Vetur
- Use vue-tsc for performing the same type checking from the command line, or for generating d.ts files for SFCs.
- Multi-Page App
You can specify additional CLI options, such as --port
or --open
. For a full list of CLI options, run npx vite --help
in your project.
npm run dev
or npx run dev
The site will launch at: http://localhost:5173/
npm run build
or npx run build
By default, it uses <root>/index.html
as the build entry point, and produces an application bundle that is suitable to be served over a static hosting service. Check out the Deploying a Static Site for guides about popular services.
After you've built the app, you may test it locally by running npm run preview command: npm run preview
or npx run preview
. This will boot up a local static web server that serves the files from dist
at http://localhost:4173
.