Shortlink webservice
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
healthCheck
test
.eslintignore
.eslintrc
.gitignore
.modulusignore
.travis.yml
LICENSE
README.md
api.yml
package-lock.json
package.json

README.md

j4n.io

Build Status Coverage Status Dependencies bitHound Overall Score js-standard-style

The source code of my shortlink webservice.

Usage

Requirements

  • NodeJS 5.5
  • MongoDB 3.2

Build and run

  1. npm install
  2. See configuration app/bootstrap/config.js and use process env vars to overwrite parameters.
  3. npm start

Test

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.