Building a blog using Bootstrap 5 with Ruby on Rails 6 in MVC pattern.
This repository is part of the Curso Ruby on Rails 6 MVCRuby version | 2.7.2 |
Rails version | 6.1.5 |
Database | SQLite3 (dev) / PostgreSQL (prod) |
# clone the project
git clone https://github.com/jose-rgb/blogCavernaLabs.git
# enter the cloned directory
cd blogCavernaLabs
# install Ruby on Rails dependencies
bundle install
# install Node dependencies
yarn install
# create the development and test databases
rails db:create
# create the tables
rails db:migrate
# run the project
rails s
Open the browser at the address http://localhost:3000
# delete the config/credentials.yml.enc file
rm config/credentials.yml.enc
# run the command to create credentials and master key (replace 'code' if you don't use VS Code)
EDITOR="code --wait" bin/rails credentials:edit
Add the information below in the credentials to configure the email used by the Devise gem (replace with the values you want):
# ... your content above
gmail:
mailer_sender: 'Sender <[email protected]>'
user_name: [email protected]
password: your_password
exception_recipients: [email protected]
Save and close the config/credentials.yml.enc
file.
If you want to use another email provider, change it in the file
config/environments/production.rb
.
To configure Exception Notification, change it in the file
config/initializers/exception_notification.rb
.