Today I see Dchud release WordPressure, NodeJS + Python apps which aggregate new post in WordPress.com Real-time. Curious how it would be, then I put my unused domain ani-rss.org as my experiments. I use Amazon EC2 with Ubuntu 11.10 64bit (Oneiric). So, here are the steps.
1. Install base packages
1 | sudo apt-get install git redis-server |
2. Install NodeJS
1 2 3 4 5 6 7 8 9 10 11 12 13 | cd ~/ sudo apt-get install git-core curl build-essential openssl libssl-dev pkg-config mkdir ~/local wget -c http://nodejs.org/dist/v0.6.6/node-v0.6.6.tar.gz tar -xvvf node-v0.6.5.tar.gz cd node-v0.6.5 export JOBS=2 ./configure –prefix=$HOME/local/node make make install echo ‘export PATH=$HOME/local/node/bin:$PATH’ >> ~/.profile echo ‘export NODE_PATH=$HOME/local/node:$HOME/local/node/lib/node_modules’ >> ~/.profile source ~/.profile |
Configure /etc/environment to run NodeJS every boot startup:
1 2 3 | NODE="/home/ubuntu/local/node" PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:$NODE/bin:$NODE/lib/node_modules" #PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" |
3. Download repository
1 2 | git clone https://github.com/dchud/wordpressure.git && cd wordpressure npm install -g |
4. Install Python Dependencies
1 | sudo pip install -r requirements.pip |