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.
Getting started with Docker
Tested on Linux Ubuntu 22.04
Local Deployment with Docker
Start dev environment
docker-compose up -d --build
Allow to drop && seed database when initializing the dev environment
Access the shell in the app container
docker-compose run --rm --entrypoint sh app
Getting started without Docker
Tested on OSX M1 Ventura 13.4.1
Requirements
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
Initial setup
Start the PostgreSQL server.
brew services start postgresql
Install the Ruby gems.
Create the database.
bundle exec rails db:createRun the migrations.
bundle exec rails db:migrateSeed the database.
bundle exec rails db:seedRunning the app
Navigate to http://localhost:3000 to access the website.
Testing
- Run
rails testto run unit/integration tests. - Run
rails test:systemto run system tests, usingheadless_chrome.