If you notice any bugs or features that can be added, please open an issue! If you'd like to work on an issue, please assign yourself to it.
cd client
npm install
to install all dependenciesnpm start
to build & start the React app
cd server
npm install
in the root directory to install all dependenciesnpm start
to start the Node.js server
- Install PostgreSQL 12.4 (untick pgAdmin installation, we'll install this separately) https://www.enterprisedb.com/downloads/postgres-postgresql-downloads
- pgAdmin version 4.27 release https://www.pgadmin.org/download/
- open
pgAdmin
->PostgreSQL 12
->Databases
- Right click
Databases
andCreate
->Database
- name:
'postgres'
, owner:'postgres'
, password:123456
(This is the current hard coded config defined in server file) - Define
LOCAL_USER
LOCAL_DB
LOCAL_PASSWORD
LOCAL_HOST
andLOCAL_PORT
according to your server configs in.env
- In
/server/src/database/db.ts
, changePool(config)
on line 13 toPool(localconfig)
- No errors should pop up if setup correctly.
- Make sure that you have
.env
file on the root directory of server (ask one of us!). This file definesDB_DATABASE
,DB_PASSWORD
,DB_USER
,DB_PORT
, andDB_HOST
npm install
in the root directory of server to install all dependencies- run
docker-compose up
Useful Docker Compose Commands (more found here)
docker-compose up
builds, (re)creates, starts, and attaches to containers for a servicedocker-compose build --no-cache
does not use cache when building the imagedocker-compose ps
lists containersdocker-compose rm
removes stopped service containers
- WSL2 install Windows 10 https://docs.microsoft.com/en-us/windows/wsl/install-win10
- Docker Windows https://docs.docker.com/docker-for-windows/wsl/
Before making a pull request, please ensure the following:
- Your branch is up-to-date with the
main
branch- If it is out-of-date, please run
git pull
on your working branch
- If it is out-of-date, please run
- All checks pass (currently this is a linting check)
- Your pull request changes under 1000 lines (recommended)
- Your pull request has been reviewed by at least one other person.