Project Event Backend documentation.
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.
mongodb://localhost:27017/DemoDb
- Open a console window and set the root folder (where the package.json file is located).
- Install dependencies executing
npm install
- Run the server executing
node app\server.js
- Default credentials are: root / 1234
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
Run
npm 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
Run:
- JSHint:
grunt jshint
- ESLint:
grunt eslint
for console or an HTML report:grunt eslint-report