Skip to content

waltonR1/allomaison_frontend

Repository files navigation

allomaison_frontend

This template should help get you started developing with Vue 3 in Vite.

Recommended IDE Setup

VSCode + Volar (and disable Vetur).

Type Support for .vue Imports in TS

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.

Customize configuration

See Vite Configuration Reference.

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Type-Check, Compile and Minify for Production

npm run build

JSON Server Setup (Mock Backend)

⚠️ Since the real backend is not yet implemented, this project uses json-server to simulate API requests using a db.json file.

Install JSON Server

Install globally with:

npm install -g json-server

Start JSON Server

From the root directory of the project, run:

json-server --watch db.json

This will launch a local mock API based on the content of db.json.


Admin Login and Test Accounts

The login feature uses hardcoded user data from db.json. Use the following credentials to test different user roles:

Admin Login URL

http://localhost:5173/adminLogin

Test Accounts(if you use json-server)

Role Email Password
Admin admin@example.com 123456
Provider provider@example.com 123456
Customer customer@example.com 123456

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages