This template should help get you started developing with Vue 3 in Vite.
VSCode + Volar (and disable Vetur).
TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue types.
See Vite Configuration Reference.
npm installnpm run devnpm run builddb.json file.
Install globally with:
npm install -g json-serverFrom the root directory of the project, run:
json-server --watch db.jsonThis will launch a local mock API based on the content of db.json.
The login feature uses hardcoded user data from db.json. Use the following credentials to test different user roles:
http://localhost:5173/adminLogin
| Role | Password | |
|---|---|---|
| Admin | admin@example.com | 123456 |
| Provider | provider@example.com | 123456 |
| Customer | customer@example.com | 123456 |