Skip to content

lukemurray7/NC-NEWS-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Northcoders News API

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.

Getting Started

Here is a link to the API.

The front end of this project can be found here

Prerequisites

    Node.js v7.0.0 or higher

    Mongo v3.4.2 or higher

Installation

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.

Testing

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

Built With

  • Express
  • MongoDB - Document-oriented database system used
  • Mocha - Node.js test framework
  • Chai - TDD/BDD Assetion Library used
  • EJS - Client side templating language
  • Supertest - High-level abstraction for testing HTTP

About

This is the backend for my Northcoders-News project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors