arkadiuszpasek / RubyonRailsApp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

The blog made using Ruby on Rails + MySQL + Bootstrap

Ruby version

  • Ruby installed: 2.7.0
  • Rails installed: 6.0.2.1

System dependencies

  • Mysql installed

Configuration

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

Images:

Landing page

1

Newest articles

2

Sign in page

3

Adding new post

4

Admin page

5

Edit view

6

About


Languages

Language:Ruby 65.7%Language:HTML 25.2%Language:JavaScript 6.6%Language:CSS 2.5%