This NC News API uses express.js, PSQL and Node.js. It allows you to retrieve and manipulate data related to articles, comments, topics, and users. You can use this API to:
- View a list of all articles, with the option to filter by topic
- View all comments associated with a particular article by its ID
- Post new comments aswell as upvote/downvote existing comments
- Delete existing comments
- A file called endpoints.json will discuss each endpoint in full
- Node.js v20.5.0
- PostgreSQL v14.9
- git clone this repo
- cd backend-review-ncnews
- npm install
- npm run setup-dbs
- npm run seed
- create a
.env.development
file and.env.test
file in the highest directory level - In the development file insert the line
PGDATABASE=nc_news
- In the test file insert the line
PGDATABASE=nc_news_test
If you would like to run some tests to ensure your environment is set up run the command npm run test