This is just the server; There's a wrapper project including the API docs as well as both server and client as submodules at https://github.com/lentschi/expiry_sync.
The server is licensed under the GPLv3.
- Install ruby (v2.1 +)
- Install required dependencies using bundler:
gem install bundler && bundle install(or insteadbundle install --without heroku_production_server docker_production_db heroku_production_db production, if you're on a development server) - Configure database access by copying
config/database.yml.skeltoconfig/database.ymland adepting it to your needs. - Configure cookie singing by copying
config/initializers/secret_token.rb.skeltoconfig/initializers/secret_token.rband inserting the output ofbundle exec rake secret. - Create the empty database by running
bundle exec rake db:createandbundle rake db:schema:load
Just run bundle exec rails s
Only cucumber tests for now -> run:
bundle exec cucumberThere are Some .skel files you need to copy and configure (The examples are configured to use unicorn and include the rails console):
Capfile.skelconfig/deploy.rb: changerepo_urlto your forkconfig/deploy/production.skel: add your production serverconfig/deploy/staging.skel: add your staging server
To deploy on your production server you may run: cap production deploy
It is up to you really - If you don't own your own server, you might want to give Heroku a try.