Skip to content

mkdika/rblog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b90b67b Â· Feb 2, 2020
Feb 1, 2020
Oct 27, 2019
Dec 24, 2019
Feb 2, 2020
Dec 15, 2019
Oct 27, 2019
Oct 27, 2019
Dec 2, 2019
Oct 27, 2019
Dec 1, 2019
Oct 27, 2019
Oct 27, 2019
Nov 10, 2019
Nov 8, 2019
Nov 22, 2019
Dec 17, 2019
Nov 30, 2019
Feb 2, 2020
Feb 1, 2020
Oct 27, 2019
Nov 22, 2019
Feb 2, 2020
Oct 27, 2019
Oct 27, 2019
Nov 10, 2019
Oct 31, 2019
Feb 2, 2020
Dec 24, 2019

Repository files navigation

rBlog

License: MIT rails badge codebeat badge codecov Build Status Known Vulnerabilities

Yet another simple Ruby on Rails 5 (RoR) blog application. This is my RoR full stack web development learning project & example, including its automatic CI/CD setup and cloud platform deployment.

Screenshots

Front page

Imgur

Admin page

Imgur

This project use

Blog Features

  • Multi user login.
  • Post blog, with category, tags, and comments.
  • Data audit trail & transaction history.
  • Multiple resolution responsive view.
  • Markdown as blog's content markup language.
  • Todo:
    • Blog post archive page.
    • Setup email account for sending password recovery & instructions.
    • Dashboard to view blog post, number of comments, etc.

Online Demo

Running locally

Environment & requirement provision

We need to have Ruby 2.6.5 or for ease the provisioning we can use Vagrant from this repository vagrant-ruby-dev.

Environment variable

There are several env variable should be config prior running apps:

  • DATABASE_USERNAME, database username.
  • DATABASE_PASSWORD, database password.
  • DATABASE_HOST, database host.
  • DATABASE_PORT, database port.
  • DATABASE_URL, database connection string url.
  • RECAPTCHA_SITE_KEY, recaptcha site key, get it from here.
  • RECAPTCHA_SECRET_KEY, recaptcha secret key.

Run Rails application

Install Rails & dependencies

bundle install

Init & setup database

rails db:setup

Seed sample data

rails db:seed

Run rails app locally

rails s

Or if you using and run inside Vagrant.

rails s -b 0.0.0.0

Access from http://localhost:3000

Run all automatic testing

rspec

Copyright and License

Copyright 2019 Maikel Chandika (mkdika@gmail.com). Code released under the MIT License. See LICENSE file.