Welcome to Northcoders News API containing articles on a variety of topics, users can interact with votes and comments.
Hosted REST API server available at - https://nc-news-z2fk.onrender.com/api/
- Javascript
- PQSL
- HTTP/Express Server Creation
- Full Test Driven Development
- Supertest & Jest for Full Integration Testing
In order to set up a local copy, please follow these simple steps.
Repo can be found here:- https://github.com/AvrilHunter/NC-News
-
Clone the repo
git clone https://github.com/AvrilHunter/NC-News
-
Install NPM packages
npm install
-
Create two files: .env.test, .env.development and .env.production
-
Update these files:-
PGDATABASE="insert database name / url link here"
-
Database names and URL can be requested via email from avrilhunter15@gmail.com
-
Seed your local database through running the command
seed-prod
-
Tests can be run using the command
npm run test
Node minimum version = 10.5.2 Postgres minimum version = 14.11
The project is a REST API with various news articles.
-
Like something - you can add a vote to the article.
-
Disagree with an article - you can remove votes from the article.
-
Have an opinion - feel free to post a comment.
-
Join the conversation now!