/threebuilder

threebuilder

Primary LanguageJavaScript

LOG

Koa + MongoDB + Angular.js + Node.js

A starting point for writing AngularJS apps backed by a Koa-powered node.js server.

Requirements

  1. MongoDB
  2. node >= 0.11.9
  3. ruby and sass,compass gems
  4. git

For Developers

  1. Develop

     npm install -g bower grunt-cli
     npm install
     bower install
     grunt dev
    

    Then the default browser will open http://localhost:3000 automatically.

    A livereload server was started by grunt-contrib-watch which will watch static files(css, sass, js, html) and server(via nodemon).

    So, if you want to refresh your browser when you changed specific files, maybe you should install the browser extension.

  2. Build

     grunt build
    

    kman-v{VERSION}.zip will be in zips directory.

  3. Test

    • Front-end e2e test. (Note: Before this test, the app server should be running, you can open another terminal, and run node --harmony app.js)

        grunt client_e2e
      
    • Front-end unit test

        grunt client_unit
      
    • Server test

      Upcoming

For Deploy

npm install --production
npm start

LICENSE

MIT