Frontend: React
Backend: Node + Express.js
API: gRPC
DB: PostgresSQL
BlookRPC could behave like a gRPC query. https://github.com/uw-labs/bloomrpc
- Install Git.
- Fork this repo and clone to local
- Add a remote name (e.g.
upstream
) for your copy of the main repo. Fetch the remote-tracking branches from the main repo to keep it in sync with your copy.
git remote add upstream https://github.com/moziliar/CS2102_2021_S1_Team49
git fetch upstream
Verify with git branch -r
(should see upstream/master
)
4. Set your master
branch to track the main repo's master
branch
git checkout master
git branch -u upstream/master
Future PR make directly to the
upstream master
. Constantly pull fromupstream master
.
We recommend using Docker compose as it provides a standardized, production-ready environment for the DB server.
If you choose to install DB server locally, feel free to do so.
- Install Docker
- Use the Docker Compose file with
docker-compose up -d
where-d
flag starts the composed containers in the background. - Refer to the output log (
docker-compose logs -f
) for DB password if unsure. - Use
docker ps
to get the container ID - Use
docker exec -ti [postgres container id] psql -U [username] -d [db_name]
to enter the PostgreSQL server in the container.
Execute cp .env.example .env
and configure the environment variables inside to your local environment.
Then run source .env
We shall use the Heroku config for production/staging variable injection.
- Run
npm run server
to startup the server - Run
npm run webapp-dev
to run the frontend at localhost
Note if you have problem at #1 you might need to modify your environment variable of DB_PORT
to 54321