Giter Club home page Giter Club logo

extmvc's Introduction

Ext MVC

EXT MVC is a complete MVC stack on top of Ext JS (extjs.com).

Base App

You are advised to use the base app to get up and running with Ext MVC as it sets everything up for you.

If you’re comfortable with git:

  1. git clone git://github.com/extmvc/baseapp.git myapp

  2. cd myapp

  3. rm -rf .git/

  4. git init

If not:

  1. Download the latest zip file from Github at github.com/extmvc/baseapp/zipball/master and unzip.

Getting started

Read the readme file inside the base app and refer to extmvc.com

Building

Ext MVC comes with a set of build tools for itself and your applications, written in Ruby. You need to be using the Baseapp or a structure similar to it for these to work effectively.

Building your Ext MVC application

Build any app started from the base app by running this from the app’s root directory:

ruby script/build all

This will examine the contents of index.html, pull out all of the javascript includes and concatenate them into public/application-all.js. If you have the yui-compressor in your vendor directory (this is included by default) and you have java installed, the build process will also minify your application-all.js into application-all-min.js.

Building your app also concatenates any CSS includes in index.html into public/application-all.css.

NOTE: Building looks at your index.html, NOT public/index.html. index.html is your development version, public/index.html should simply include those concatenated/minified files.

Autobuild

If you need your app to be built every time you change any of the source files for whatever reason, use:

ruby script/build auto

This will again look at index.html and will force a rebuild any time any of those files are changed.

Other app build options

There are several other build commands, most of which are used by the two above:

  • ruby script/build css - only build CSS files, no JS concatenation or minification

  • ruby script/build js - only builds JS files, not CSS

  • ruby script/build concatenate_js - concatenates but does not attempt to minify your JS

  • ruby script/build minify_js - minifies an already concatenated public/application-all.js file

Building Ext MVC

If you are changing Ext MVC files and need to build Ext MVC itself, use:

  • ruby script/build mvc

  • ruby script/build mvc_auto

Again run from the app root directory. Like with ruby script/build auto, mvc_auto automatically rebuilds whenever any Ext MVC file is changed.

extmvc's People

Contributors

edspencer avatar rdougan avatar

Stargazers

 avatar

Watchers

 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.