Skip to content

Cway14/CMPT-415

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Boilerplate

This repo will be our base line for cmpt 415

Requirements

Node.js
Docker
Database Client (VScode Extention)

Installation

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

image

curl -i -H "Content-Type: application/json" -X POST -d '{ "email": "test@gmail.com", "username": "test", "password": "test" }' localhost:5000/signup