Sample Event backend with microservice architecture built on MEAN stack.
JavaScript HTML CSS Shell
Latest commit 68c7e57 Jan 25, 2017 @pjmolina Add favicon.ico
Permalink
Failed to load latest commit information.
api-invocation-samples/postman
app fix CORS with BasicAuth calls Dec 5, 2016
e2e-test Initial commit Apr 18, 2016
public
test disable eslint warning Jul 2, 2016
.bowerrc Initial commit Apr 18, 2016
.gitignore added docs/ to .gitignore Jul 2, 2016
.travis.yml Await for mongodb to be up 15 secs (fix travis) May 4, 2016
Dockerfile Initial commit Apr 18, 2016
LICENSE Initial commit Apr 18, 2016
Procfile Initial commit Apr 18, 2016
README.md
bower.json Initial commit Apr 18, 2016
docker-compose.yml Initial commit Apr 18, 2016
gruntfile.js fix param name -> key Nov 5, 2016
karma-teamcity.conf.js
karma.conf.js Initial commit Apr 18, 2016
launch-docker-composer.sh Initial commit Apr 18, 2016
launch-docker.sh Initial commit Apr 18, 2016
manifest.yml
newrelic.js Added newrelic Apr 18, 2016
package.json upgrade npm version to 4.x Jan 25, 2017

README.md

Event Backend

Project Event Backend documentation.

Build Status bitHound Overall Score

Event Backend services implemented using the following technologies:

  • NodeJS
  • MongoDB
  • Mongoose
  • Baucis
  • Swagger

API REST published over /api on port 5000.

Swagger documentation for /api available on /api/documentation

Admin frontend created with AngularJS 1.3 + Bootstrap.

Default connection string for database

mongodb://localhost:27017/DemoDb

How to run it?

  1. Open a console window and set the root folder (where the package.json file is located).
  2. Install dependencies executing npm install
  3. Run the server executing node app\server.js
  4. Default credentials are: root / 1234

Test prerequirements and debugging tools

In order to launch debugging tools and quality code reports you must install the following prerequirements:

npm install -g nodemon phantomjs grunt-cli karma karma-cli jshint

Test

Run

npm test

Karma UI Test

Install Karma and dependencies:

npm install -g karma-chrome-launcher karma-coverage karma-firefox-launcher karma-jasmine karma-junit-reporter karma-phantomjs-launcher karma-teamcity-reporter@0.2.1 mocha-teamcity-cov-reporter jasmine-reporters karma@0.9.8 protractor 

And then run: npm test-ui-single-run

Check for JS code quality

Run:

  • JSHint: grunt jshint
  • ESLint: grunt eslint for console or an HTML report: grunt eslint-report