Skip to content

vol1ura/Sat_9am_5km

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Quality&Tests CodeQL Code Coverage Maintainability

GPLv3 license Contributions Website

Sat 9am 5km - run events system

Maintenance

Reset Postgres stats with:

SELECT pg_stat_statements_reset();

Development

Create deploy/.env and config/database.yml files:

cp ./deploy/.env.example ./deploy/.env
cp ./config/database.yml.example ./config/database.yml

To build project install Docker and execute

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

make

Server setup

To install web application on Ubuntu server run

  1. Install dependencies:
sudo apt-get install -y libyaml-dev
  1. Install Rust to build Ruby with YJIT on the next step
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  1. Install or update rbenv using rbenv-installer:

  2. Then install Ruby

rbenv install 3.4.5
rbenv global 3.4.5

About

Parkrun like site with weekly saturday run results

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors 7