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 app
Tested on OSX M1 Ventura 13.4.1
Install gems via:
brew bundle install --no-upgrade
...or manually:
- Ruby 3.2.2
- libpq -
brew install libpq
libpg
is needed to use the nativepg
gem 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.conf
file, 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 postgresql
Install the Ruby gems.
bundle install
Create the database.
bundle exec rails db:create
Run the migrations.
bundle exec rails db:migrate
Seed the database.
bundle exec rails db:seed
Navigate to http://localhost:3000
to access the website.
bundle exec rails s
- Run
rails test
to run unit/integration tests. - Run
rails test:system
to run system tests, usingheadless_chrome
.