Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aesthetikx/boring_science

A mountable Rails blogging engine.
https://github.com/aesthetikx/boring_science

blogging blogging-engine rails

Last synced: about 2 months ago
JSON representation

A mountable Rails blogging engine.

Awesome Lists containing this project

README

        

Boring Science

A mountable Rails blogging engine.

## Installation
Add this line to your application's Gemfile:

```ruby
gem 'boring_science'
```

And then execute:
```bash
$ bundle
```

Copy migrations to your application and migrate:
```bash
$ rails boring_science:install:migrations
$ rails db:migrate
```

## Usage
Add a blog to your applications routes:
```ruby
# config/routes.rb
Rails.application.routes.draw do

# ...

# Default Blog
mount BoringScience.blog, at: '/blog'

# Second Blog
mount BoringScience.blog, at: '/other',
as: :other_blog,
options: { title: 'Other Blog', blog: 'other' }
end
```

Define a blogging user (can be nil for read only access):
```ruby
# app/controllers/application_controller.rb
class ApplicationController < ActionController::Base

# ...

def boring_science_user
current_user
end
end
```

## Contributing
Pull requests welcome.

## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).