Skip to content
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.

Development environment

Benibur edited this page Aug 6, 2012 · 17 revisions

Requirements

  • NodeJS >= 0.6.0
  • MongoDB >= 2.0.0
  • Brunch
  • Redis
  • CoffeeScript
  • Jade
  • Stylus

Get MongoDB

Run following commands (debian/ubuntu)

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" | sudo tee --append /etc/apt/sources.list
sudo apt-get update
sudo apt-get install mongodb-10gen

Install Redis

sudo apt-get install redis-server

Get software

Simply clone the repository and install dependencies:

git clone git@github.com:mycozycloud/cozy-notes.git
cd cozy-notes
npm install

Install Railways

sudo npm install railway -g

Retrieve submodules

git submodule init
git submodule update

Run Notes server

Use following command:

railway s

For automatic reloading after modifications:

supervisor -x coffee -e coffee server.coffee

Don't forget to install supervisor

sudo npm install supervisor -g

Build front end

Install brunch and download dependecies

npm install brunch@1.0.3 -g
cd client
npm install

Use following command:

cd client/
brunch build

For automatic reloading after modifications:

brunch watch

Run tests

Run back-end tests

cake tests

Run front-end tests

cake tests:client