- Setup Prettier on VScode
- Install Yarn
- Create
.env
file withDATABASE_URL
- Download client_secret.json from juniorsclub.nus@gmail.com Google Developer Console into the root folder. Add the client_secret field into the json.
yarn
yarn dev
Online Heroku Postgresql server
After modifying the database, run:
npx prisma generate
run yarn add -D @prisma/client
- Follow Conventional Commits
- Files in the /pages folder generally should focus on the structure and layout of the page, try to avoid doing all of the logic in that single file. If it gets too messy or hard to read, create your corresponding folder in the /components folder and split up your components there. The more atomic the better.
- Magic strings and values should either be declared in the file as a constant, or in the /utils folder if it shared throughout. Examples of these are route strings, eg: const HOME_URL = "/home";
- Custom hooks should be in the /hooks folder directory.