/sample-express-ember-gulp

Node.js, Express.js, Ember.js and Gulp.js project sample

Primary LanguageJavaScript

sample-express-ember-gulp

Buy author a beer

##Presentation

This project is a boilerplate described in a serie of 3 blog articles.

It provide a complete working example of Node.js, Express.js, Jade, Stylus and Ember.js (Handlebars.js, jQuery).

##Running the project

###Development mode

####Installation Clone the project from github and install dependencies:

  git clone git@github.com:jbdemonte/sample-express-ember-gulp.git
  $ cd sample-express-ember-gulp/
  ~sample-express-ember-gulp$ npm install

####Run Open 2 shell and run in parallel:

  $ cd sample-express-ember-gulp/
  ~sample-express-ember-gulp$  gulp watch
  $ cd sample-express-ember-gulp/
  ~sample-express-ember-gulp$ npm start

The first one will watch your JavaScript and Handlebars updates an generate each time a new public/build/app.js file. The second one simply run the Express.js server

###Production mode

####Installation

Based on the installation from the development mode below, build the project:

  $ cd sample-express-ember-gulp/
  ~sample-express-ember-gulp$  gulp

Unzip the package on your production server:

  $ mkdir project
  $ cd project
  ~project$ unzip ../..package-*.zip

Install the production dependencies:

  ~project$ npm install --production

####Run Start the server:

  ~project$ npm start