The blog made using Ruby on Rails + MySQL + Bootstrap
- Ruby installed: 2.7.0
- Rails installed: 6.0.2.1
- Mysql installed
Now save credentials to mysql
EDITOR="nano" rails credentials:edit
# or any editor
development:
mysql_username: name
mysql_password: pwd
In database.yml config reference the credentials:
username: <%= Rails.application.credentials.dig(:development, :mysql_username) %>
When credentials are properly configured run rake db:create
and run rake db:migrate
Functonalities made:
- Index Page
- User creation
- Admin login, admin page:
- adding posts
- deleting posts
- editing posts
- Display of few newest articles from database
- Article display