sudo apt-get install build-essential libssl-dev git-core graphicsmagick
wget http://nodejs.org/dist/v0.6.21/node-v0.6.21.tar.gz
tar xzvf node-v0.6.21.tar.gz
cd node-v0.6.21
./configure
make
sudo make install
wget http://redis.googlecode.com/files/redis-2.4.16.tar.gz
tar xzvf redis-2.4.*.tar.gz
cd redis-2.4.*
make
sudo make install
sudo cp redis.conf /etc/redis.conf
Upstart script /etc/init/redis-server.conf
description "redis server"
start on runlevel [23]
stop on shutdown
exec sudo -u opinsys redis-server /etc/redis.conf >> /var/log/redis.log
respawn
Start it
sudo start redis-server
git clone https://github.com/opinsys/pahvi.git
cd pahvi
npm rebuild
Move config.json-example to config.json and edit if necessary.
In development
bin/develop
Node.js debugging
bin/debug
Production
export NODE_END=production
npm start
Server-side code:
lib/
Client-side code:
client/
Client styles:
client/styles/
Vendor bundles for the client (JS and CSS!):
client/vendor/
Handlebars templates:
views/
Client-side Handlebars templates:
views/client
Random helper scripts
bin/
- CoffeeScript
- Backbone.js
- Handlebars.js
- Underscore.js
- Async.js
- jQuery
- Node.js
- Express
- Cool Vim tricks ;)