/rails-blog-sample

A simple blog on the Ruby on Rails framework.

Primary LanguageRuby

Rails Blog Sample

This repository contains a simple web application built with the Ruby on Rails web framework.

The project has the next base features:

  • Blog (with draft/publish/archive management of posts and tag filtering)
  • Single pages
  • Feedback page

Setting Up a Development Environment

  1. Create a Ruby 2.4.1 environment (e.g. via rbenv or RVM).
  2. Install required dependencies:
bundle install --binstubs
  1. Create a role with the 123456 password for PostgreSQL databases:
su - postgres
createuser -P -d railsblogsample
exit
  1. Create a database with schema and add initial data:
bin/rails db:setup
  1. Run the local server:
bin/rails server

Done! 🎉 Use admin@example.com as the user email and 123456 as the password to log in to the admin panel.