- Install Bundler
- gem install bundler
- Set environment variables with database connection information (see the example below)
- export RAILS_ENV='development'
- export USERNAME_DB='devel'
- export PASSWORD_DB='devel'
- export HOST_DB='localhost'
- export PORT_DB='5432'
Rename config/database.yml.example to config/database.yml
- Init environment
- bundle install
- bundle exec rails db:create
- bundle exec rails db:migrate
- bundle exec rails db:seed
- Start Rails Server
- bundle exec rails server
More info: https://agroecologymap.org/