Serious Game with Ekylibre (Mirror)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
db
doc
lib
log
public
test
vendor/assets
.gitignore
.rubocop.yml
Gemfile
Gemfile.lock
README.rdoc
Rakefile
config.ru

README.rdoc

README

Ruby version

Ruby 2.2.1 is needed. rbenv (github.com/sstephenson/rbenv) is recommended to manage many ruby versions.

System dependencies

For now, the system uses PostgreSQL database (with PostGIS)

sudo apt-get install graphicsmagick postgresql postgresql-9.4-postgis-2.1 bind nginx

Configuration

All default seed data are in db/

  • Scenarios

  • Historics

  • Games

  • Users (samples)

Development installation

An ekylibre app must be installed alongside Serious to get working app.

In Ekylibre, you have to install plugin seriously:

cd ekylibre/
mkdir -p plugins
cd plugins
git clone git@forge.ekylibre.com:seriously.git

Slave configuration

Adds config/slave.yml file to configure access to ekylibre:

development:
  path: ../serious-ekylibre
  master_url: http://game.serious.lan:3000
  # domain: serious.lan
  # port: 80
  # protocol: http

Database creation and initialization

To initialize DB, it's possible to run this command:

rake db:drop db:create db:migrate db:seed

or in less words:

rake db:rebuild

The seeds are generated from existing scenarios, historics and games soted in db/.

How to run the test suite

rake test

Services (job queues, cache servers, search engines, etc.)

Launch ekylibre:

foreman start

Deployment instructions

TODO

Please feel free to use a different markup language if you do not plan to run rake doc:app.