Embryo is a template for web applications written in iced coffeescript.
Note: This project is mostly for my personal use. Embryo was created because I needed a minimal skeleton for web apps which provides a debug and release environment.
It is designed for realtime web applications built with Backbone.js, socket.io and templated with Stylus. Node.js + mongodb backend.
It includes the directory structure, libraries, a skeleton server implementation as well as a script which can build the client-side files and produce a single minified .js and .css file.
Usage: Clone this repository and remove the .git directory.
mkdir myproject git clone email@example.com:codeboost/embryo.git . rm -r .git/
Start by installing the global tools and dependencies:
./init.sh #does this: npm install iced-coffee-script uglify-js@1 && npm install
Initialize the project (creates the directories and configurations):
iced cake init
Now you can edit server-config.coffee and adjust the parameters. This file is not tracked by git (.gitignore) so you can have different server-config.coffee files on different machines.
Finally, create the git repository for your new project:
git init git add -A git commit -m 'Initial'
To build the client application, run:
iced cake build
To start the server in release mode:
To start the server in debug mode:
iced server debug