开源软件名称:wyntau/kman
开源软件地址:https://github.com/wyntau/kman
开源编程语言:
JavaScript
54.2%
开源软件介绍:KMAN
Koa + MongoDB + Angular.js + Node.js
A starting point for writing AngularJS apps backed by a Koa-powered node.js server.
KMAN based on koan, but have some differences with koan.
- use high level mongoose
- use high level socket.io (Experimental, not sure how to use it correctly)
- use SASS
- more pre-defined grunt tasks for development(watch, livereload) and deploy(compile, build, concat, uglify, compress, md5, etc.)
Requirements
- MongoDB
- node >= 0.11.9
- ruby and sass,compass gems
- git
In addition, Linux or Mac is optional but recommended, because Linux or Mac is more friendly to ruby(& gems) and some npm packages.
For Developers
-
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.
-
Build
kman-v{VERSION}.zip will be in zips directory.
-
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 )
-
Front-end unit test
-
Server test
Upcoming
For Deploy
npm install --production
npm start
You can see nginx/kman.conf for nginx setting for http://kmanjs.com
LICENSE
MIT
|
请发表评论