NC-News is a backend API built with Nodejs, and postgres, and was created as part of the Northcoders course curriculum. The API is built for the purpose of accessing application data programmatically.
- Node.js:
node -v | v18.4.0
- postgres:
psql -v | 8.7.3
To get started using this api, please complete the following
- Clone this repository
- Install project dependencies with 'npm install'
- Add the following files, with the corrosponding line
- .env.test : PGDATABASE=nc_news_test
- .env.development : PGDATABASE=nc_news - Run the database setup script
npm run setup-dbs
- Seed the database
npm run seed
- Run the tests
npm t