Skip to content

pigeonwatcher/NC-News-BE

Repository files navigation

Northcoders News API

A JavaScript back-end API project which aims to mimic a real-world backend service (e.g. Reddit).

Website: https://nc-news-th0a.onrender.com

The front-end app for this project can be found here:

https://github.com/pigeonwatcher/NC-News-FE

Setup

Install Dependencies

Once Node.js is installed, install the following packages:

Create Databases

Create a '.env.development' and '.env.test' and file then add the following:

PGDATABASE=nc_news

PGDATABASE=nc_news_test

Run npm run setup-dbs to create a 'nc_news_test' and 'nc_news' database. You can then run npm run seed to seed the development database.

Testing

The following packages were used to test the API:

Run npm run test to run the tests which will automatically use the test database in '.env.test'.

Endpoints

A detailed explanation of each endpoint can be found in the endpoints.json.

Nevertheless, some key endpoints are...

  • /api
  • /api/topics
  • /api/articles
  • /api/comments
  • /api/users

Special Thanks

Massive thanks to my mentors Pippa, John and Rich at Northcoders for their valuable feedback throughout this project! :)

About

A JavaScript back-end API project which aims to mimic a real-world backend service (e.g. Reddit).

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors