Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/peimelo/blogstrap

Building a blog using Bootstrap 5 with Ruby on Rails 6 in MVC pattern.
https://github.com/peimelo/blogstrap

bootstrap bootstrap5 devise flyio mvc pundit rails rolify rspec ruby ruby-on-rails videocourse

Last synced: about 20 hours ago
JSON representation

Building a blog using Bootstrap 5 with Ruby on Rails 6 in MVC pattern.

Awesome Lists containing this project

README

        

# Blogstrap ![Tests](https://github.com/peimelo/blogstrap/actions/workflows/ruby.yml/badge.svg) [![Maintainability](https://api.codeclimate.com/v1/badges/6f77f0326f9a1e63038d/maintainability)](https://codeclimate.com/github/peimelo/blogstrap/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/6f77f0326f9a1e63038d/test_coverage)](https://codeclimate.com/github/peimelo/blogstrap/test_coverage)

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 MVC](https://www.youtube.com/watch?v=rCwMlbpC7dU) on YouTube.


Ruby version

3.1.3



Rails version

6.1.7



Database

SQLite3 (dev) / PostgreSQL (prod)

## Initial settings to run the project

```bash
# clone the project
git clone https://github.com/peimelo/blogstrap.git

# enter the cloned directory
cd blogstrap

# 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`

## Configuration for Production

```bash
# 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](https://guides.rubyonrails.org/security.html#custom-credentials) to configure the email used by the Devise
gem (replace with the values you want):

```yml
# ... your content above

# GMail
gmail:
mailer_sender: 'Sender '
user_name: [email protected]
password: your_password

# or Zoho
zoho:
mailer_sender: 'Sender '
user_name: [email protected]
password: your_password
domain: your_domain.com.br

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](https://github.com/smartinez87/exception_notification), change it in the file
`config/initializers/exception_notification.rb`.

Open the browser at the address [https://blogstrap.fly.dev/](https://blogstrap.fly.dev/)