Service API for the StoryTracker application
In order to run the StoryTracker API locally, you must:
- Have node.js 7.x or later installed.
- Have a working installation of MongoDB.
npm install
- Create the files
/<path>/config/prod.json
and/<path>/config/qa.json
. - In each config file, create a JSON object with the following format:
{
"mongodb": "mongodb://path-to-mongo-server/storytracker",
"secret": "[random string]"
}
- Run the service:
NODE_ENV=qa node app.js
. (If no environment is specified, it defaults to using the qa.json file.)