Mountable blog engine for Ruby on Rails 4.
Add the gem to Gemfile of you Rails application:
gem 'blogo'
Install the gem:
bundle install
Install initializer file:
rails generate blogo:install
Take a look into config/initializers/blogo.rb
and configure what you need.
Install blogo migrations and run them:
rake blogo:install:migrations
rake db:migrate
Create a user:
rake blogo:create_user[user_name,[email protected],password]
Mount the blog routes to you rails application in config/routes.rb
Blogo::Routes.mount_to(self, at: '/blog')
Run the rails application and go to http://localhost:3000/blog/admin
to create you first post!
Go to http://localhost::3000/blog
to take a look at your posts.
If you use zsh
and experience a problem to create a user through the rake task, try to escape [
and ]
characters:
rake blogo:create_user\[user_name,[email protected],password\]
Please see wiki.
The next formats are supported out of the box, but don't forget to add necessary dependencies to your Gemfile manually.
Format | Dependency |
---|---|
html | - |
markdown | redcarpet |
This project rocks and uses MIT-LICENSE.