Giter Site home page Giter Site logo

kman's Introduction

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

  1. MongoDB
  2. node >= 0.11.9
  3. ruby and sass,compass gems
  4. 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

  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

You can see nginx/kman.conf for nginx setting for http://kmanjs.com

LICENSE

MIT

kman's People

Stargazers

Jack avatar Cuity avatar  avatar 之梦 avatar 小枫 avatar 张瑞 avatar  avatar shoxbb.github.io avatar  avatar tivon avatar Pike avatar James Yang avatar Gavin avatar o avatar Penny avatar ikapta avatar  avatar 爱木UI avatar 爱but的苍蝇 avatar YUANYUAN avatar saighost avatar zixin avatar Aditya Saxena avatar  avatar  avatar hcxiong avatar Manoj avatar lessmost avatar gongrui avatar Rikki Schulte avatar 徐媛 avatar Evy avatar ping.wang avatar roc zheng avatar 查理 avatar Sergey Kuznetsov avatar dai yun avatar admin avatar zyf avatar 老王 Willin (v0) avatar loufq avatar Catis Zen avatar Julien Valéry avatar vczero avatar Hui Zheng avatar maslam avatar Baoshan Sheng avatar 衣不如新 avatar 一米 avatar iiivan avatar 清泉古雾 avatar

Watchers

gongrui avatar James Cloos avatar  avatar Wyntau Lau avatar

kman's Issues

move resources and apis to one directory

move all resources and apis to only one directory, so we can use only /api prefix. just like what https://github.com/koajs/api-boilerplate/blob/master/lib/load/index.js do

we can add just js files or sub-directories in api.

if js files and end with .resource.js or .restful.js, we will treat it as one resource.
if js files just end with .js, we will treat it as normal path api.

In sub-directory, one config.js or config.json should tell which type api it is.

add server test

now only client tests(unit, e2e) are included, server tests should added using test mongo database.

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.