This is the server side backend for WPoint using Ruby, Sinatra and MongoDB.
sudo apt-get install git-core
brew install git
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
sudo sh -c "echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' >> /etc/apt/sources.list"
sudo apt-get update
sudo apt-get install mongodb-10gen
brew install mongodb
To make MongoDB run on boot on OS X:
mkdir -p ~/Library/LaunchAgents
cp /usr/local/Cellar/mongodb/2.0.4-x86_64/homebrew.mxcl.mongodb.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
git clone [email protected]:mellowi/WPoint-Server.git
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
source ~/.rvm/scripts/rvm
rvm pkg install readline
rvm install 1.9.2-p290 --with-openssl-dir=/opt/local --with-readline-dir=$rvm_usr_path
rvm rvmrc trust WPoint-Server/
gem install bundler
bundle install --without production
rake test_data
foreman start
http://localhost:5000
http://wpoint.herokuapp.com
Application is hosted in Heroku. MongoDB is hosted in MongoHQ.
rake
or
rake console
Launches irb with all the requirements and initializes database connection.
rake test_data
Initializes database with random test reports.
rake spec
Runs all the RSpec tests.