https://github.com/alecbytes/cen3031group15
https://github.com/alecbytes/cen3031group15
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/alecbytes/cen3031group15
- Owner: AlecBytes
- Created: 2023-09-13T12:58:53.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-05T21:13:57.000Z (over 2 years ago)
- Last Synced: 2025-01-09T04:37:16.358Z (over 1 year ago)
- Language: Vue
- Homepage: https://pantrypal-lac.vercel.app
- Size: 5.41 MB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CEN3031group15
## Client
### Setup environment
1. Install nvm
2. Install npm with nvm
3. Intall quasar CLI
- `npm install -g @quasar/cli`
4. Install JSON-Server
- `npm install -g json-server`
- [More directions](https://www.npmjs.com/package/json-server01)
5. Install JSON Server Auth
- `npm install -g json-server-auth`
- [More directions](https://www.npmjs.com/package/json-server-auth)
6. Install dotenv of environment variables
- from /client run `npm install dotenv`
- create a file called `.env` in /client and add the following line:
- SUPABASE_KEY="supbase-key-here"
- Get the supabase key [here](https://supabase.com/dashboard/project/preudbpdnhcigtnuiuit/settings/api).
### Start Client
From /client directory:
1. Start JSON server
- Doesn't work with Cypress: `json-server-auth --watch db.json`
- Does work with Cypress: `json-server-auth --watch db.json --host 0.0.0.0`
2. Start Quasar dev server
- `quasar dev`
3. Start Quasar and JSON server
- `npm run dev`
- located in package.json
### Cypress Testing
#### Install
- I ran this from /client `quasar ext add @quasar/testing-e2e-cypress`
- Docs:
- https://testing.quasar.dev/packages/e2e-cypress/
- https://docs.cypress.io/guides/end-to-end-testing/writing-your-first-end-to-end-test
#### Run Tests
- Open Cypress: `npx cypress open`
- Run Cypress tests: `npx cypress run`
### Deploy
- Package the quasar app: `quasar build`
- log in to vercel: `vercel login`
- Note, the free version only allows one person, so for now I'm the only one who can deploy. Howeever, the goal is to set up CI/CD so that it will automatically deploy when we push to main.
- Deploy to vercel: `vercel --prod`