Skip to content

Latest commit

 

History

History
89 lines (58 loc) · 1.56 KB

README.md

File metadata and controls

89 lines (58 loc) · 1.56 KB

ci Code Climate Better Stack Badge

Open GAS

The open source software for sports associations

The software is still a work in progress. Expect huge variations.

Develop

I suggest you to use asdf Install ruby 3.3.5

Start the needed services with docker compose:

docker compose up -d

Create the database and seeds:

bin/rails db:create db:migrate db:seed

To run the server:

bin/rails s

You an reach the app at https://localhost:3000

Tests

Run:

# application tests
bin/rails test

# system tests (E2E)
bin/rails test:system

# all
bin/rails test:all

Lint

We use rubocop and htmlbeautifier to lint

Run:

bundle exec rubocop
bundle exec htmlbeautifier filename

Deploy

We use kamal for deploying.

Copy the .env file:

cp .env.example .env

Configure your env variables.

The first time (after having configured you server), run:

bundle exec kamal setup

For pushing envs or changing those, run:

bundle exec kamal env push

Then:

bundle exec kamal deploy