https://matt-worthington-games.herokuapp.com/api
- Backend -
Node.js
- Framework -
Express
- Database -
PostgreSQL / node-postgres
- TTD -
Jest
The intention here was to mimick the building of a real world backend service (such as reddit) which will provide this information to the front end architecture
- Clone git repo from https://github.com/MattWorthington95/be-nc-games
- Once cloned, run
npm i
to install dependencies - run
npm setup-dbs
to start the Database in postgres - run
npm test
to run all the Jest tests
You will need to create two .env
files for this project: .env.test
and .env.development
. Into each, add PGDATABASE=<database_name_here>
, with the correct database name for that environment (see /db/setup.sql
for the database names). Double check that these .env
files are .gitignored.
- psql v12.7
- Node v14.17.3