Coder Social home page Coder Social logo

github-explorer's Introduction

SANE Stack

##Overview SANE - A Sails and Ember Starter Kit that will help you get started with rapid Web App prototyping and development. It includes, what are in our opinion the best tools for backend and frontend development. They will save you an immense amount of time, make development smoother and deliver the best results that work optimally across multiple devices.

So what exactly does this kit include?

  • A sane folder structure so you can develop server and client seperately, but they integrate smoothly
  • A SailsJS Vagrant Box coming with PM2, MongoDB, MySQL and Redis all set-up to work properly - though you could as easily run it without Vagrant if that's not your thing.
  • Using ember-cli in the client folder, already set-up, using the latest 0.0.42 version. In addition we are already including sass and foundation to get started quickly with frontend styling.

To find out more about Sails and Ember and how they work together, you can take a look at my talk http://vimeo.com/103711300 and slides http://talks.artificial.io/sailing-with-ember/

##Quickstart

  • Clone this project
  • To get the server up: Run vagrant up, once it's all done vagrant ssh, cd into ~/server and run npm install
  • Run sails lift to get the server started on localhost:1337
  • In the client folder run npm install && bower install
  • Run ember serve to get the dev server with auto-reload running on localhost:4200
  • So in dev-mode simply think of your ember app as you would of any other client, for example an Android app.

##Deployment

  • pm2 start app.js -x -- --prod in /server starts sails in production mode on port 80
  • ember build --environment=production && cp -rf dist/* ../server/assets/ && cp -f dist/index.html ../server/views/index.ejs.
    • That builds the app and copies it over to be included with Sails.
    • pm2 restart app -x so Node can pick up the latest changes

Note: If you are using Node v0.11.x you can run pm2 start app.js -- --prod (without the -x) and then you just need pm2 reload app to reload the server with 0s downtime.

The Server is configured to serve the Ember App on all routes, apart from the api/** routes, so Ember itself can take full control of handling error routes, etc.

For more information on deployment and different strategies check out:

##Thanks Thanks to mphasize for creating sails-ember-blueprints which overwrites the default SailsJS JSON response to the one that Ember Data's RESTAdapter and RESTSerializer expects.

##Contribution Everyone is more than welcome to contribute in any way: Report a bug, request a feature or submit a pull request. Just keep things sensible, so we can easily reproduce bugs, have a clear explanation of your feature request, etc.

##License Sails-Ember Starter Kit is MIT Licensed.

github-explorer's People

Contributors

codepreneur avatar

Watchers

James Cloos avatar  avatar  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.