- Ruby 3.3.1
- PostgreSQL 16.2
- Install gems:
bundle install - optional: Install
overcommitfor GIT commit hooks - optional: Install GIT hooks with
overcommit:overcommit --install -f - optional: Run
overcommit --signto trust the hooks in this repository. - Setup database and run migrations:
rails db:setup - Run server:
./bin/rails server
Docker-based development environment requires docker-compose >= 1.9.0.
Visit https://docs.docker.com/compose/install/ for more details.
Forwarded ports and access:
- Web: http://localhost:3000 (host machine).
- Database:
postgres://postgres@localhost:6543(host machine).
Use bin/dev helper script for docker-compose management. Run bin/dev -h to see help for this tool.
First time you will need to build containers, get gems installed and manually migrate database.
$ bin/dev up -d
$ bin/dev log
### wait until gems installed
$ bin/dev migrate
### develop
$ bin/dev stopAfter first run when all gems installed and migration applied you can just use simple bin/dev start
and bin/dev stop commands to start and stop dev environment.
ENABLE_QUERY_TRACE=[1|0]- enable query tracing for ActiveRecord;RACK_MINI_PROFILER=[1|0]- enable the mini profiler.
Use the following guides for getting things done, programming well, and programming in style.