Covid Checkin
Simple Covid checkin project made for Project Studio UniSA 2021 S5, WebDevPain
Requirements
You must install the following to develop this app locally
Optional Goodies
- Make your terminal pretty starship
Useful links
Getting Started
First, install dependencies:
yarn
Install husky hooks
yarn prepare
Now you can run a dev server
yarn dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.tsx
. The page auto-updates as you edit the file.
API routes. Can be edited in pages/api/*.ts
.
Linting and Styling
This is now automated with husky
Linting and styling is handled automatically with a command, these commands will run on each PR to main however it is best to run them before any commit
yarn lint
yarn format
Deployment
All deployments are handled automatically though github commits, branches will have staging urls and main will be pushed to production
You should test that the app builds before pushing with
yarn build
Git convention
To keep things organized in this repo I ask that all developers use a similar convention when working on features.
- Use gitmoji to begin the commit message
- Keep messages short and sweet, usually expressing the task you accomplished
- Create a new commit per task, however avoid making multiple commits for the same task.
- Aim for 1 commit per feature (branch) this makes it easier to handle multiple branches at once and reduces review time
- Never push to main, always make a new branch per feature (task)
Tests
Tests are completed with cypress an e2e tester they are ran automatically with github however when developing tests you can use the following command to test.
yarn cypress