Crack is an online (rack) version of the Codebreaker game.
git clone https://github.com/gremax/crack.git
And then execute:
$ cd crack && rackup
Open browser and play:
$ open http://localhost:9292
$ heroku create --eu
Generate SECRET_TOKEN
:
$ rake secret
Set a new environment varable:
$ heroku config:set SECRET_TOKEN=96554406f406641c0a67bb7f18044b98c7f76eafa2d6dffaad30abd372ff2f2a9d523936ddbb81b9655bb841d886d878fff3a236eceea3a1accb9215467cbca5
Use git to deploy to Heroku:
$ git push heroku master
Open browser and play:
$ heroku open
$ rake -T
rake db:remove # Remove database file
rake db:reset # Reset database
rake secret # Generate a secret key
- Fork it ( https://github.com/gremax/crack/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request