Sample Event backend with microservice architecture built on MEAN stack.
JavaScript HTML CSS Shell
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
api-invocation-samples/postman
app
e2e-test
public
test
.bowerrc
.gitignore
.snyk
.travis.yml
Dockerfile
Dockerfile2
LICENSE
Procfile
README.md
bower.json
docker-compose.yml
gruntfile.js
karma-teamcity.conf.js
karma.conf.js
launch-docker-composer.sh
launch-docker.sh
manifest.yml
newrelic.js
package-lock.json
package.json

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 default port 5000.

API documentation for /api available on:

  • OpenAPI 3.0 on /api/openapi.json
  • Swagger 2.0 on /api/swagger.json
  • Swagger 1.1 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