A puzzles website
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
content
db
lib/tasks
public
.components
.gitignore
.rvmrc
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

Monkeypuzzles

A website of puzzles. The site can be seen live at monkeypuzzles.org.

Setup and Coding

The code is built on ruby. RVM is the recommended way of installing ruby. It will sandbox each project with their own ruby and gem versions. But it is (probably) not required.

We use padrino and bootstrap.

sqlite3 is used for development, and bindings for it can be installed like this (according to the DataMapper startup guide):

# Debian / Ubuntu
sudo apt-get install libsqlite3-dev
# RedHat / Fedora
sudo yum install sqlite-devel
# MacPorts
sudo port install sqlite3
# HomeBrew
sudo brew install sqlite

Then:

git clone git@github.com:tgwizard/monkeypuzzles.git
cd monkeypuzzles
# install bundler if not already installed
gem install bundler
# install development dependencies from the Gemfile
bundle install --without production
# run migrations
padrino rake ar:migrate
# start the dev server, after each change
padrino s
# go to http://localhost:3000

monkeypuzzles.org/status gives some overview of the system status - including database content.

When logging in, mockmyid.com is a good way to get a fake email (although it doesn't seem to work most of the time).

Deployment

git pull --rebase
# check that everything is ok
git push && git push heroku master
heroku run rake ar:migrate
# done!