The source code of my shortlink webservice.
- NodeJS 5.5
- MongoDB 3.2
npm install
- See configuration
app/bootstrap/config.js
and use process env vars to overwrite parameters. npm start
Run npm test
for the complete test-suite including linter. For the db and http tests you need to provide a mongo-db and specify its host via env variable. E.g.:
DB_HOST=localhost:27017 npm test
See package.json
for the commands to run the single test suites – they are faster to execute.