This is a full-featured blog engine built using Rails 4.0 and Ruby 2.0.
A working copy of the application can be seen at rails-blog.caseyscarborough.com.
The application uses the following system dependencies:
- Ruby 2.0.0 (possibly 1.9.3, but not tested)
- Rails 4.0.0
- Other gems listed in Gemfile
If you'd like to check out the application or contribute to it, follow the instructions below.
Clone the repository and use the bundle command to install dependencies.
git clone http://github.com/caseyscarborough/rails-blog.git
cd rails-blog
bundle install
First, you'll want to edit the db/seeds.rb file and enter the information for your admin user's account.
User.create({
username: 'caseyscarborough',
email: '[email protected]',
first_name: 'Casey',
last_name: 'Scarborough',
password: 'password',
password_confirmation: 'password',
is_admin: true
})
Update the config/config.yml file with the information about your blog (this step is optional).
title: Rails Blog
author: Casey Scarborough
Then proceed to migrate, create admin user, populate the database with sample data (optional), and run the rails server. See the lib/tasks/sample_data.rake file for more info about the database population task.
rake db:migrate db:seed db:populate
rails server
Then navigate to http://localhost:3000 in your web browser to see the application in action.
The tests are built using the RSpec testing framework and can be run by issuing the following command from the project root:
rspec spec/
- Come up with a suitable name for the project. Possible: Zen?
- Add tags to posts.
- Implement one-to-many relationship with User to Posts.
- Develop admin 'dashboard'.
Please feel free to contribute to the application by following the steps below:
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request