vol1ura/Sat_9am_5km

View on GitHub
README.md

Summary

Maintainability
Test Coverage
[![Quality&Tests](https://github.com/vol1ura/Sat_9am_5km/actions/workflows/rubyonrails.yml/badge.svg)](https://github.com/vol1ura/Sat_9am_5km/actions/workflows/rubyonrails.yml)
[![CodeQL](https://github.com/vol1ura/Sat_9am_5km/actions/workflows/codeql.yml/badge.svg)](https://github.com/vol1ura/Sat_9am_5km/actions/workflows/codeql.yml)
[![Test Coverage](https://api.codeclimate.com/v1/badges/5f0c800f5880bee344af/test_coverage)](https://codeclimate.com/github/vol1ura/Sat_9am_5km/test_coverage)
[![Maintainability](https://api.codeclimate.com/v1/badges/5f0c800f5880bee344af/maintainability)](https://codeclimate.com/github/vol1ura/Sat_9am_5km/maintainability)

[![GPLv3 license](https://img.shields.io/badge/License-GPLv3-blue.svg)](http://perso.crans.org/besson/LICENSE.html)
![Contributions](https://img.shields.io/badge/Contributions-Welcome-brightgreen)
![Website](https://img.shields.io/website?down_color=red&down_message=failed&up_color=blue&up_message=online&url=https%3A%2F%2Fs95.ru)

# Sat 9am 5km - run events system

## Development

Create `deploy/.env` and `config/database.yml` files:
```shell
cp ./deploy/.env.example ./deploy/.env
cp ./config/database.yml.example ./config/database.yml
```

To build project install `Docker` and execute
```shell
make build
make ash
# in docker container
rails db:prepare
rake db:parse_parkrun_codes[kuzminki_db.csv]
rails db:environment:set RAILS_ENV=test
# add secrets
rails credentials:edit --environment test
# run tests
rspec
```

Now you can run it
```shell
make
```

- Site [http://localhost:3000](http://localhost:3000)
- Admin panel [http://localhost:3000/admin](http://localhost:3000/admin)
- Email previews [http://localhost:3000/rails/mailers](http://localhost:3000/rails/mailers)
- Database panel [http://localhost:3003](http://localhost:3003/?pgsql=db&username=postgres)
- Bug tracker [Rollbar.com](https://rollbar.com/Urka/Sat_9am_5km/)
- Sidekiq [WebUI](https://s95.ru/sidekiq) for admin users
- Rails Performance [dev](http://localhost:3000/app_performance/) or [prod](https://s95.ru/app_performance/) for admin users