Start by cloning the repository to your local machine:
git clone https://github.com/your-username/your-repository.git
cd your-repositoryMake sure you have the following software installed:
- Ruby 3.3.3 (used by this project)
- Bundler
- PostgreSQL (or any other database you're using)
Install the necessary gems using Bundler:
bundle install- Create the config/database.yml file using the following template:
default: &default
adapter: postgresql
encoding: unicode
pool: 5
username: your_database_user
password: your_database_password
host: localhost
development:
<<: *default
database: your_database_development
test:
<<: *default
database: your_database_test
production:
<<: *default
database: your_database_production
username: your_production_db_user
password: your_production_db_password- After configuring the database.yml file, create the database:
rails db:create
rails db:migrateStart the Rails server:
rails sCongratulations! The server will be accessible at: http://localhost:3000