NOTE: This project, while exciting, is still an early prototype. While being mostly stable it is still being iterated with feature changes and improvements fairly regularly.
Sane - A Javascript fullstack and cli that uses two of the best frameworks, Sails and Ember, so you can rapidly create production-ready web applications. It takes away all the hassle setting up the full backend and frontend environment, embracing convention-over-configuration all the way, so you can focus just on shipping your app. Additionally this cli also supports Docker, using Docker Compose, to automatically install dependencies such as your database and will make deployment easier.
Quickstart:
npm install -g sails sane-clisane new projectcreates a local project with sails-disk. To install with Docker and production databases see Options.sane generate resource user name:string age:numberto generate a new API on the backend and models on the frontendsane upto start the sails server onlocalhost:1337as well as the ember dev server onlocalhost:4200.- To work on your frontend-app you work as you would normally do with ember-cli on
localhost:4200. - You are now good to go.
Note: If you use Docker, make sure you have Docker Compose installed.
On Mac or Windows Docker Toolbox is required. This will install all of the necessary Docker tooling, including VirtualBox.
For Linux see: https://docs.docker.com/installation/ubuntulinux/
The full documentation is available at: http://sanestack.com/
sane-cli is developed with ES6/7 functionality, using traceur to provide a cleaner code as well as a nice experience for us the developers. To get started:
git clone https://github.com/artificialio/sane.gitcd sane && npm installto install the dependenciesnpm linkto make sure you can test the master version globally- If you add a new feature an according test would be appreciated
npm testto run the test-suite
Thanks to mphasize for creating sails-generate-ember-blueprints which overwrites the default SailsJS JSON response to the one that Ember Data's RESTAdapter and RESTSerializer expects.
Thanks to sails for that great backend framework
Thanks to ember-cli contributors for all the great effort that has gone into this product and from which I have taken a lot of inspiration and code, especially in regards to testing.
SANE Stack is MIT Licensed.
Built with love by Artificial Labs and contributors <3