HOWTO: Local installation

vrinek edited this page Apr 20, 2012 · 3 revisions
Clone this wiki locally

I assume you already have ruby 1.9 and rubygems.

Open a console terminal

Terminal.app on OS X, Command prompt on Windows and a myriad of application on Linux.

Get MongoDB

Download it from http://www.mongodb.org/display/DOCS/Quickstart.

Run it from a terminal with mongod.

Install git

Download git from http://git-scm.com/ and install it.

Download D&D on Rails

Go to a directory of your choice (inside it we will create a new directory for D&D on Rails).

Run git clone https://vrinek@github.com/vrinek/Dungeons-and-Dragons-on-Rails.git to download the application to a new directory named Dungeons-and-Dragons-on-Rails.

Prepare the gems

Install bundler with gem install bundler.

Run rbenv rehash to update the executables (optional for rbenv).

Run bundle install to get all gems necessary to run the application.

Run bundle exec rspec spec to make sure everything works fine (green is good, red is bad).

Start the server with bundle exec rails server.

Point your browser to http://localhost:3000 and you should be seeing something like http://dnd-onrails-demo.herokuapp.com/.