Northcoders News API is a RESTful api which is build using Express.js, Node.js, MongoDB and ejs. The MongoDB is hosted on mlabs, and the API is deployed through Heroku.
Here is a link to the API.
The front end of this project can be found here
Node.js v7.0.0 or higher
Mongo v3.4.2 or higher
If you would like to download the project to run on your local machine follow these steps:
Git clone https://github.com/lukemurray77/NC-NEWS-API.git ncnewsapi
cd ncnewsapi
npm install
Before starting the project, please open a second shell in your terminal and ensure mongoDB is running with the command:
mongod
Once this is set up, you should be able to start the server.
Run this command in the ncnewsapi directory on the command line.
npm start
Navigate to http://localhost:3000/ in your browser to see the API endpoints.
The API endpoints have been tested using Mocha, Chai and Supertest. To run the tests simply navigate to the ncnewsapi in your terminal and run :
npm test