Management of customers and suppliers for Node.js/MongoDB/Mongoose with AngularJS based UI, hapi controller
You need to run the following command in root directory of an app in command prompt.
npm install
[Mongodb] (http://docs.mongodb.org/manual/)
import sample data using the given command
mongorestore --host localhost --port 27017 --db [database_name] [path of sample database file]
Note: You will find sample database in ./db/customer-supplier.
You need to run the following command in root directory of an app in command prompt.
node server.js
Test cases are written using Mocha for nodejs testing and protractor for angularjs.
Mocha is a simple, flexible, fun JavaScript test framework for node.js and the browser.
Protractor runs tests against your application running in a real browser, interacting with it as a user would.
npm install -g mocha
mocha
npm install -g protractor
protractor
[visit protractor] (http://angular.github.io/protractor/#/)
Model documentations are written using jsdoc.
JSDoc 3 is an API documentation generator for JavaScript.
You can find model documentation in directory named out in root directory of app.
Open index.html inside out directory.
[jsdoc] (http://usejsdoc.org/)
Build beautiful APIs
Collaborative design, instant API mock, generated documentation, integrated code samples, debugging and automated testing.
[Visit Api Documentation!] (http://docs.customersupplier.apiary.io/)