Giter Site home page Giter Site logo

pandeysoni / customer-supplier Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jcatalog/customer-supplier

2.0 2.0 0.0 1.6 MB

Management of customers and suppliers for Node.js/MongoDB/Mongoose with AngularJS based UI, hapi controller

CSS 34.54% JavaScript 30.60% HTML 34.86%

customer-supplier's Introduction

customer-supplier

Management of customers and suppliers for Node.js/MongoDB/Mongoose with AngularJS based UI, hapi controller

Install an app

You need to run the following command in root directory of an app in command prompt.

npm install

Run an app

Run Mongodb Database

[Mongodb] (http://docs.mongodb.org/manual/)

import database

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.

Run Server

You need to run the following command in root directory of an app in command prompt.

node server.js

Run Test

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.

How to run node test

npm install -g mocha

mocha

Mocha test framework

How to run angular test

npm install -g protractor

protractor

[visit protractor] (http://angular.github.io/protractor/#/)

Documentation

Model Documentation

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/)

Api Documentation

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/)

customer-supplier's People

Contributors

anilapu avatar gauravgupta90 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.