百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
M

monologue

> 后端框架
开源

独白是一个基本的博客引擎. 它是一个铁路可挂载的引擎,你可以在你的已有的铁路应用软件中挂载,或者在一个新的软件中挂载! 请慢用.

476 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

独白是一个基本的博客引擎. 它是一个铁路可挂载的引擎,你可以在你的已有的铁路应用软件中挂载,或者在一个新的软件中挂载! 请慢用.

Monologue

THIS README IS FOR THE MASTER BRANCH AND REFLECTS THE WORK CURRENTLY EXISTING ON THE MASTER BRANCH. IF YOU ARE WISHING TO USE A NON-MASTER BRANCH OF MONOLOGUE, PLEASE CONSULT THAT BRANCH'S README AND NOT THIS ONE.

NOT MAINTAINED ANYMORE: This project hasn't been maintained for a while. It's pretty basic and should still work. Chances are issues and PRs might not receive the attention they deserve, at least, not quickly, if at all.

Monologue is a basic, mountable blogging engine in Rails built to be easily mounted in an already existing Rails app, but it can also be used alone.

Version

This README is for the latest version of Monologue (0-5-stable being the latest stable version).

Upgrade and changes

To learn how to upgrade, see UPGRADE.md file. If you want to learn what changed since the last versions, see CHANGELOG.md.

Questions? Problems? Documentation?

  • Mailing list for questions
  • Issues and bugs
  • Wiki

Some features

  • Rails mountable engine (fully namespaced and mountable in an already existing app)

  • tested

  • back to basics: few features

  • tags (or categories)

  • RSS

  • multiple users

  • support for Google Analytics and Gaug.es tags

  • few external dependencies (no Devise or Sorcery, etc…) so we don't face problem integrating with existing Rails app.(Rails mountable engines: dependency nightmare?)

  • comments are handled by disqus

  • more in the CHANGELOG

  • Available extensions

    • monologue-markdown
    • monologue_image_upload

missing features

  • see roadmap!

Installation

1. Add the gem to your Gemfile.

ruby
gem 'monologue'

And run bundle install to fetch the gem and update your 'Gemfile.lock'.

2. Route to Monologue

Add this to your route file (config/routes.rb)

ruby
# This line mounts Monologue's routes at the root of your application.
# This means, any requests to URLs such as /my-post, will go to Monologue::PostsController.
# If you would like to change where this engine is mounted, simply change the :at option to something different.
#
# We ask that you don't use the :as option here, as Monologue relies on it being the default of "monologue"
mount Monologue::Engine, at: '/' # or whatever path, be it "/blog" or "/monologue"

For example, if you decide to mount it at /blog, the admin section will be available at /blog/monologue. Here we decide to use monologue as default route mounting it at /, it means that the admin section will directly be available at /monologue.

3. Migrate Monologue's database tables

Run these commands:

  1. $bin/rake monologue:install:migrations
  2. $bin/rake db:create (only if this is a new project)
  3. $bin/rake db:migrate

4. Create a user

Open your development console with bin/rails c, then:

ruby
Monologue::User.create(name: "monologue", email:"[email protected]", password:"my-password", password_confirmation: "my-password")

5. Configure Monologue.

This is all done in an initializer file, typically config/initializers/monologue.rb. More on this in the Wiki - Configuration.

6. Ready

Start your server and go to http://localhost:3000/monologue to log in the admin section.

Note to users

Monologue is using its own tables. If you want to use your own tables with monologue (for example the User table) this might help you to monkey patch.

Customization

See the Wiki - Customizations.

Copy views

copy views like devise rails g monologue:views or use scope: rails g monologue:views blog

Requirements

  • Rails 4.2.1 +
  • Database: MySQL & Postgres are supported but other databases might work too.

Authors

  • Jean-Philippe Boily, @jipiboily
  • Michael Sevestre, @msevestre

Contributing

In the spirit of free software, everyone is encouraged to help improve this project.

Here are some ways you can contribute:

  • by using prerelease versions
  • by reporting bugs
  • by suggesting new features
  • by writing or editing documentation
  • by writing specifications
  • by writing code (no patch is too small: fix typos, add comments, clean up inconsistent whitespace)
  • by refactoring code
  • by resolving issues
  • by reviewing patches

Starting point:

  • Fork the repo
  • Clone your repo
  • Run bundle install
  • Run bundle exec rake db:migrate
  • Run bundle exec rake db:setup
  • Make your changes
  • Ensure specs pass by running bundle exec rspec spec
  • Submit your pull request

You will need to install this before running the test suite:

  • https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit

Thanks to

Zurb for the "social foundicons".

Issues· 20 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rubyblogblog-engineblog-platformbuttercms

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类后端框架
定价开源

> 相关工具

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架