This repo will be our base line for cmpt 415
Node.js
Docker
Database Client (VScode Extention)
After installing all the required tools Clone this repo
git clone https://github.com/kiajalali/CMPT-415
cd CMPT-415/server
Once you're in the boilerplate directory make sure Docker Engine is running to ensure that docker is running run the following command
docker ps
After that rename EXAMPLE.env
to .env
the env file should look something like the following (DO NOT CHANGE THESE VALUES)
PGUSER=root
PGHOST=127.0.0.1
PGPASSWORD=root
PGDATABASE=orange
PGPORT=5432
Finally to setup our database simply run the following command
docker-compose up -d
Once you've done that you can connect to the database using the Database Client (VScode Extention)
The default username and password is root
curl -i -H "Content-Type: application/json" -X POST -d '{ "email": "test@gmail.com", "username": "test", "password": "test" }' localhost:5000/signup