Group Members: Matthew Banks, Sarah Avery
- Fork and Clone this "repo"
- Follow the README
- Fork this repo, then clone your fork.
- Install dependencies using 'yarn install'
Use the psql -U development
command to login to the PostgreSQL server with the username development
and the password development
.
Create a database with the command CREATE DATABASE finals_development;
.
Create a .env.development
and fill in the necessary PostgreSQL configuration. The node-postgres
library uses these environment variables by default.
PGHOST=localhost
PGUSER=development
PGDATABASE=finals_development
PGPASSWORD=development
PGPORT=5432
Run a the development server with yarn start
.
Both of these achieve the same result.
- Make a
GET
request to/api/debug/reset
withcurl http://localhost:8002/api/debug/reset
. - Use the browser to navigate to
http://localhost:8002/api/debug/reset
.
Running the server normally
yarn start
- bcryptjs: 2.4.3
- body-parser: 1.18.3
- cors: 2.8.5
- dotenv: 7.0.0
- express: 4.16.4
- helmet: 3.18.0
- jsonwebtoken: 8.5.1
- nodemon: 2.0.12
- pg: 8.5.0