Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jhollinger/eridu
A Sinatra blogging app for the classy developer
https://github.com/jhollinger/eridu
Last synced: 3 months ago
JSON representation
A Sinatra blogging app for the classy developer
- Host: GitHub
- URL: https://github.com/jhollinger/eridu
- Owner: jhollinger
- License: other
- Created: 2012-06-08T03:51:07.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2022-12-01T00:58:25.000Z (almost 2 years ago)
- Last Synced: 2024-05-31T20:01:22.466Z (5 months ago)
- Language: Ruby
- Homepage:
- Size: 189 KB
- Stars: 11
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.textile
- License: LICENSE
Awesome Lists containing this project
README
h1. Eridu
A Sinatra blogging app for the classy developer. Though inspired by "Enki":https://github.com/xaviershay/enki, it tries to be even cleaner, while offering more features.
h2. Quick Start
git clone git://github.com/jhollinger/eridu.git eridu
cd eridu
bundle install # Install all the required gems# Copy and edit configuration files to taste
cp config/database.yml.template config/database.yml
cp config/eridu.yml.template config/eridu.ymlrake db:migrate # Initialize or update the database
ruby eridu.rb # Start the server at http://localhost:4567h3. Deploying to Production
Same as above, except instead of _ruby eridu.rb_, do:
cp config/thin.yml.template config/thin.ymlbundle exec thin start -C config/thin.yml
h2. Philosophy
* Sinatra is perfect for this; Ruby on Rails is overkill
* /yyyy/mm/dd/post-title is a good URL for your posts
* Atom is a good publishing protocol
* Google does search better than you or I
* Disqus does comments better (or at least easier) than you or I
* You don’t need a plugin system when you’ve got a lean, clean code base
* This is just your blog - Basic Auth is good enough for the admin area
* Textile is awesome
* Everyone wants awesome media upload, a responsive layout, and syntax highlighting
* Few really want multiple sites, authors, skins and arcane templating languages
* You should be running Ruby 2.0 by nowFramework choices aside, Eridu differs from its progenitor, Enki, mainly in the number of bundled features. These include optional Disqus integration, a responsive layout, simple yet elegent media management, syntax highlighting, and themes (each theme is just a css file). While Enki leaves these "extras" as an exercise to the reader, Eridu pragmatically includes these de facto necessities.
h2. Syntax Highlighting with Coderay Plugin for Textile
# Single line
@[ruby]puts "It's ruby codez!"@# Multi-line
bc[ruby].. puts "It's ruby codez!"
puts "and more"puts "and more"
p. Back to a Textile paragraph
h2. Compatibility
Tested on MySQL, Postgres, and SQLite. Heroku should be possible, but is untested.
h2. License
Apache - See LICENSE
Admin design heavily inspired by "Enki":https://github.com/xaviershay/enki and "Habari":http://www.habariproject.org/en/