/zakk-admin

Website and admin interface for zakk (bremen) based on Ruby on Rails 5

Primary LanguageRubyGNU General Public License v3.0GPL-3.0

Build Status Code Climate Coverage Status

zakk-admin

Website and admin interface for zakk (a cultural center in Bremen, GER)

Based on Ruby on Rails 5, Postgres, jQuery and Foundation 5

Dependencies

Rails 5.2 & Ruby 2.4, Rspec

Qt for the compiling of capybara-webkit

Installation

Set up configuration: Copy all *.example files in /config and change them as needed.

Database Setup

This application relies on a PostgreSQL database. Setup a database, check db/create_db.sql for some basic commands. Define database name and user at config/database.yml

Run migrations

$ bundle exec bin/rails db:migrate

Run seeds

$ bundle exec bin/rails db:seeds

Testing w/RSpec

$ bundle exec rspec spec

Run

$ bundle exec bin/rails s

Travis CI

Encrypt config files for safe usage in Travis, without publishing it to Github

Before: Install Travis CLI with Ruby 2.4

$ gem install travis

Adding secret files to .travis.yml

$ tar cvf secrets.tar config/application.rb config/database.yml config/environment.rb config/secrets.yml config/settings.yml
$ travis encrypt-file secrets.tar --add

Setting up Postgres database

Credits

Designed and developed by Ulf Treger ulf.treger@googlemail.com

Contributions

Please file bugs to our Github Repository at https://github.com/ut/zakk-admin

Licence

This project is licensed under a GNU General Public Licence v3