Ruby and Rails [dot] info. Ruby and Rails Info website.
The first version of this project was implemented by Leonid and it is currently maintained by Lucian Ghinda with the help of many contributors.
Tested on Linux Ubuntu 22.04
docker-compose up -d --build export $RECREATE_DB=true docker-compose run --rm --entrypoint sh appTested on OSX M1 Ventura 13.4.1
Install gems via:
brew bundle install --no-upgrade...or manually:
- Ruby 3.2.2
- libpq -
brew install libpqlibpgis needed to use the nativepggem without Rosetta on M1 macs
- postgresql -
brew install postgresql- Note 1: PostgreSQL 13+ is required
- Note 2: In case you're on Debian 11 and you have multiple versions (e.g. 9.x, 12.x, 14.x) of PostgreSQL installed, make sure that the server of the right version (13+) is listening on port
5432. One could check/modify that in thepostgresql.conffile, e.g. in case of version 13:/etc/postgresql/13/main/postgresql.conf.
- node -
brew install node - Yarn -
brew install yarn - Google Chrome + Chromedriver for system tests -
brew install --cask google-chrome chromedriver
Start the PostgreSQL server.
brew services start postgresqlInstall the Ruby gems.
bundle installCreate the database.
bundle exec rails db:createRun the migrations.
bundle exec rails db:migrateSeed the database.
bundle exec rails db:seedNavigate to http://localhost:3000 to access the website.
bundle exec rails s- Run
rails testto run unit/integration tests. - Run
rails test:systemto run system tests, usingheadless_chrome.