The software is still a work in progress. Expect huge variations.
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
Run:
# application tests
bin/rails test
# system tests (E2E)
bin/rails test:system
# all
bin/rails test:all
We use rubocop and htmlbeautifier to lint
Run:
bundle exec rubocop
bundle exec htmlbeautifier filename
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