/Leve

Leve (port. light) is a lightweight node.js stack for mobile web apps.

Primary LanguageJavaScript

Leve

Leve (port. light) is a lightweight node.js stack for mobile web apps.

It contains a Procfile so it can be pushed to Heroku. CoffeeScript, Hogan and Stylus are being compiled on the fly. When the environment is set to 'production' caching is enabled.

$ heroku config:add NODE_ENV=production

Usage

Install CoffeeScript and node-dev:

$ sudo npm install -g coffee-script
$ sudo npm install -g node-dev

Clone and init new project

$ git clone git@github.com:srohde/Leve.git
$ mv Leve <project_name>
$ cd <project_name>
$ rm -rf .git
$ npm install .

Run local server:

$ node-dev app.coffee

Open browser and point to localhost:4000

Deploy to Heroku:

$ git init
$ git add .
$ git commit -m "init"
$ heroku create --stack cedar
$ heroku apps:rename --app <something_unique> <project_name>
$ git push heroku master
$ heroku config:add NODE_ENV=production
$ heroku open

License

(The MIT License)

Copyright (c) 2013 Sönke Rohde http://soenkerohde.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.