Skip to content

Getting started

Kurtis Reid edited this page Aug 31, 2016 · 6 revisions

Installation

This API uses the following things:

Adjusting the settings

There are several things that need to be adjusted:

  • variable url must be adjusted to the correct port that the mongoDB instance is running on. more info
  • variable collect must be adjusted to the correct collection that the documents will be stored in.

Running the database

(Please note: database is not working) Once everything has been correctly installed, one must do several things: To run the database, navigate to the file the mongoDB file was installed to: (most often in "c:\Program Files\MongoDB\Server\3.2\bin)

mongod.exe

#Running the API Once the database is up and running, open up a seperate terminal, and navigate to the folder your server.js file is located. Once there run the command: node server.js

if everything was correctly installed, the terminal should look something like so: Example app listening at http://:::8081

The API is now successfully running! (Unlike the Jeb Bush campaign)

Clone this wiki locally