Skip to content

sudogem/rails-blog

Repository files navigation

rails-blog

A simple blog application built using Ruby on Rails framework.

Features:

  • Authentication with Social Sites (Facebook, LinkedIn, Google and Twitter)
  • CRUD(Create, Read, Update & Delete) functionality:
    • Articles

Requirements

Ruby 2.2.2p95 (it works on the ff: ruby 2.0.0, ruby 2.3.3p222[x64-mingw32], ruby 2.2.2p95[i686-linux] )
Rails 5.0.x MySQL 5.5

Install uru (ruby version manager for Windows)

Download uru at https://bitbucket.org/jonforums/uru/wiki/Downloads.
After you've downloaded uru, you extract it to your local directory C:\

$ uru list
215p273 : ruby 2.1.5p273 (2014-11-13 revision 48405) [i386-mingw32]
233p222 : ruby 2.3.3p222 (2016-11-21 revision 56859) [x64-mingw32]
$ uru 233p222
---> now using ruby 2.3.3-p222 tagged as 233p222

Installation

$ git clone --depth=1 https://github.com/sudogem/rails-blog.git
$ cd rails-blog/
$ uru 233p222
$ bundle install
$ bundle exec rake db:create db:migrate # it will create a mysql db and then execute the migration scripts.
$ rails server -p 3002
NOTE: By default, the default server is WEBrick. You can change it with different rails server such as Thin server.
Make sure that you installed the following requirements such as the rubyinstaller, the gems like rails and bundler.

Install rbenv (ruby version manager for Linux)

Download rbenv at https://github.com/rbenv/rbenv

Testing

$ bundle exec rake test

Migration for Production

$ bundle exec rake db:create db:migrate RAILS_ENV=production
$ bundle exec rake assets:precompile RAILS_ENV=production

Technology stacks

Gems used:

Screenshots:

Demo account
account: [email protected]
pass: test

Login page

Home (default)

Add post page

Developer

rails-blog © 2015 Arman Ortega. Released under the MIT License.