Giter VIP home page Giter VIP logo

javascriptmvc's Introduction

TOC:
  A.  How to get (and contribute) to JMVC
  B.  Getting Started with JMVC


A.  How to get (and contribute) JMVC

  1.  Start a new project in git.
  
  2.  Fork ....
           http://github.com/jupiterjs/steal     and 
           http://github.com/jupiterjs/jquerymx  and 
           http://github.com/jupiterjs/funcunit  and 
           http://github.com/jupiterjs/documentjs
  
  3.  Add steal, javascriptmvc, funcunit, and documentjs as submodules of your project...
           git submodule add [email protected]:_YOU_/steal.git steal
           git submodule add [email protected]:_YOU_/jquerymx.git jquery
           git submodule add [email protected]:_YOU_/funcunit.git funcunit
           git submodule add [email protected]:_YOU_/documentjs.git documentjs
  
  4.  Learn a little more about submodules ...
           http://johnleach.co.uk/words/archives/2008/10/12/323/git-submodules-in-n-easy-steps
           
  5.  Make changes in steal or jmvc, and push them back to your fork.
  
  6.  Make a pull request to your fork.
 
  
B. Getting Started with JMVC

  1. Generate app: 
  			./js steal/generate/app cookbook

  2. Generate scaffold:
  			./js steal/generate/scaffold Cookbook.Models.Recipe

  3. Include models/controllers in cookbook/cookbook.js:
			.models('recipe')
			.controllers('recipe')

  4. See your recipes app:  
  			Open callcenter.html in a browser.

  5. Include functional tests in test/funcunit/funcunit.js:
			.then("recipe_controller_test")

  6. Run functional tests in the browser: 
  			Open funcunit.html in a browser (turn off popup blockers).

  7. Run functional tests with selenium:
  			./funcunit/envjs cookbook/funcunit.html

  8. Include unit tests in test/qunit/qunit.js:
			.then("recipe_test")

  9. Run unit tests in the browser: 
  			Open qunit.html in a browser.

  10. Run unit tests with Rhino:
  			./funcunit/envjs cookbook/qunit.html

  11. Compress app:
  			./steal/js cookbook/scripts/build.js

  12. Turn on production mode in callcenter.html and reload page:
			src='../steal/steal.production.js?cookbook'

  13. Restore development mode by changing the script tag back, then generate docs:
  			./steal/js cookbook/scripts/doc.js

  14. View docs: 
			Open cookbook/docs.html.

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.