This is an API for the Northcoders News application, which provides news articles, comments, and user information. The API allows users to interact with the data by performing CRUD operations on articles, comments, and users.
You can access the hosted version of the API here.
- Node.js (minimum version: 14.0.0)
- PostgreSQL (minimum version: 12.0)
-
Clone the repository:
git clone https://github.com/geekyMicky/nc-news-be-project cd nc-news-be-project
-
Install dependencies:
npm install
-
Set up the local database:
npm run setup-dbs
-
Seed the local database:
npm run seed
-
Create the
.env
files:.env.development
:PGDATABASE=nc_news
.env.test
:PGDATABASE=nc_news_test
To run the tests, use the following command:
npm test
For detailed information about the available endpoints, refer to the endpoints.json
file.
This portfolio project was created as part of a Digital Skills Bootcamp in Software Engineering provided by Northcoders