Go to file
Thor77 ab46e0acf2 Change database host, port, user and password 2019-10-29 14:28:07 +01:00
app Filter matches by state parameter 2019-10-26 00:34:04 +02:00
bin Initial commit 2018-10-30 15:52:46 +01:00
config Change database host, port, user and password 2019-10-29 14:28:07 +01:00
db Add bet model 2019-06-17 13:48:49 +02:00
doc Regenerate SVGs 2018-11-30 14:20:57 +01:00
docker Revert Dockerfile to use latest version of image 2019-10-09 12:32:59 +02:00
kubernetes Deploy newly renamed container 2019-10-09 12:32:59 +02:00
lib/tasks Add rake docker tasks 2019-04-17 08:25:13 +02:00
public Initial commit 2018-10-30 15:52:46 +01:00
spec Readability +4 2019-10-26 01:38:06 +02:00
.dockerignore Ignore coverage and docker folder in docker build 2019-10-09 12:32:59 +02:00
.gitignore Ignore Database schema and coverage folder 2018-11-29 10:41:55 +01:00
.gitlab-ci.yml Add Tags for use with shared runners 2019-10-09 12:44:46 +02:00
.hound.yml Remove ruby section 2019-09-14 10:20:43 +02:00
.rspec Initialize RSpec setup 2018-11-13 16:56:16 +01:00
.rubocop.yml Add rubocop-rails 2019-06-21 10:47:04 +02:00
.ruby-version Bump ruby version to 2.6.2 2019-04-03 09:40:49 +02:00
.travis.yml Move sonar-scanner to bottom of travis scripts 2019-05-26 20:24:47 +02:00
Gemfile Lock rubocop to version 0.72.0 2019-09-14 10:20:43 +02:00
Gemfile.lock Lock rubocop to version 0.72.0 2019-09-14 10:20:43 +02:00
README.md Add Docker related information to readme 2019-10-09 12:32:59 +02:00
Rakefile Apply rubocop formatting 2018-11-10 15:50:27 +01:00
config.ru Apply rubocop formatting 2018-11-10 15:50:27 +01:00
docker-compose.yml Use production env (defined in Dockerfile) 2019-04-17 09:15:39 +02:00
sonar-project.properties Add sonarqube Code analysis 2019-05-26 12:53:27 +02:00

README.md

turniere-backend

Build Status pipeline status Coverage Status Codacy Badge Quality Gate Status Maintainability

Ruby on Rails application serving as backend for turnie.re

Quick install with Docker

turnie.re - Quickstart

Installation

# install dependencies
$ bundle install
# run migrations
$ rails db:migrate

Running

Development (without mail confirmation and separate database):

$ RAILS_ENV=development rails server

Docker

Registry

You can find all our Dockerfiles in the docker directory. They depend on each other in the following order: productiondevelopmenttest This means, to build the development image, you have to build the production image first and tag it with the corresponding tag that is mentioned in the FROM line in the development Dockerfile. To build all images do:

cd turniere-backend
docker build -t registry.gitlab.com/turniere/turniere-backend/production -f docker/production/Dockerfile .
docker build -t registry.gitlab.com/turniere/turniere-backend/development -f docker/development/Dockerfile .
docker build -t registry.gitlab.com/turniere/turniere-backend/test -f docker/test/Dockerfile .

This is done to leave test and development dependencies out of the production container. Also we have a dedicated test container which runs the tests reproducible when you start it, but can also run the normal rails server to somewhat debug problems occuring in the test suite if needed.

While developing, if you want to use the development docker container, it should™ be sufficient to mount the root of this repository into the /app folder within the docker container to avoid building it over and over again. Only rebuilding the development container is not sufficient, as the development Dockerfile does not have a COPY Statement

Generate diagrams

$ rails diagram:all_with_engines