Solo project for the backend block of the Northcoders remote software development bootcamp
This repository contains the files required in order to create a database and postgres based API for a website dedicated to reviewing boardgames.
- Data (test/development)
- API utlizing express.js in the format of MVC
- Test suites running jest / supertest for endpoints and functions
- seed files in order to create a PSQL database
-
Fork and then clone repo
eg. git clone https://insert repo link here
-
install npm dependencies
npm install
npm init -y -
Create .env files in the root directory
touch .env.test
touch .env.development -
Populate .env files with database names
(db names can be found in /db/setup.sql)
.env.test should contain: PGDATABASE=nc_games_test;
.env.development should contain: PGDATABASE=nc_games; -
Seed local databases
(script can be found in package.json) npm run setupt-dbs
-
Run testing suites
npm test