This is a simple project using vue 3, pinia and vuetify
See Vite Configuration Reference.
npm install
npm run dev
npm run build
Run Unit Tests with Vitest
npm run test:unit
Run End-to-End Tests with Cypress
npm run test:e2e:dev
This runs the end-to-end tests against the Vite development server. It is much faster than the production build.
But it's still recommended to test the production build with test:e2e
before deploying (e.g. in CI environments):
npm run build
npm run test:e2e
Lint with ESLint
npm run lint
This is a JSON Server to get a full fake REST API
In the root directory we create data folder, move into it and create and install JSON Server
npm install -g json-server
Create the fake database and run the server.
mkdir data
cd data
touch db.json
json-server --watch db.json --port 3001
Now you can go to http://localhost:3001/todos to see the resources.