Explore the hosted API: https://my-nc-news-t6j3.onrender.com/
The NC News API is a RESTful web application designed to serve as the backend for a news aggregation application. It provides data on articles, topics, comments, and users, with support for sorting, filtering, and CRUD operations.
To clone this repository to your local machine: git clone https://github.com/KeanuOx/my-nc-news/
Navigate into the project directory and install the required dependencies: cd my-nc-news npm install
Make sure PostgreSQL is installed and running. To set up the database:
-
Create the databases: npm run setup-dbs
-
Seed the databases: npm run seed
Run the test suite to verify functionality: npm test
To run this project locally, create the following .env
files in the root directory:
-
.env.test
PGDATABASE=nc_news_test -
.env.development
PGDATABASE=nc_news
These variables ensure the correct database is used for development and testing.
- Node.js: v16.0.0 or higher
- PostgreSQL: v12.0 or higher
The full list of available endpoints is described in the endpoints.json
file in the repository.
This portfolio project was created as part of a Digital Skills Bootcamp in Software Engineering provided by Northcoders