Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adamwiggins/scanty
The blog that's almost nothing
https://github.com/adamwiggins/scanty
Last synced: about 2 months ago
JSON representation
The blog that's almost nothing
- Host: GitHub
- URL: https://github.com/adamwiggins/scanty
- Owner: adamwiggins
- Created: 2008-11-04T23:55:43.000Z (about 16 years ago)
- Default Branch: master
- Last Pushed: 2009-07-24T02:32:46.000Z (over 15 years ago)
- Last Synced: 2024-04-15T12:19:11.099Z (8 months ago)
- Language: Ruby
- Homepage: http://adam.blog.heroku.com/
- Size: 268 KB
- Stars: 429
- Watchers: 7
- Forks: 95
- Open Issues: 10
-
Metadata Files:
- Readme: README.rdoc
Awesome Lists containing this project
- awesome-sinatra - Scanty - A really small blogging software. (Blogging)
README
= Scanty, a really small blog
== Overview
Scanty is blogging software. Software for my blog, to be exact:
http://adam.blog.heroku.comIt is not a blogging engine, but it's small and easy to modify, so it could be
the starting point for your blog, too.== Features
* Posts (shock!)
* Tags
* Markdown (via Maruku)
* Ruby code syntax highlighting (via Syntax)
* Atom feed
* Comments via Disqus
* Web framework = Sinatra
* ORM = Sequel== Dependencies
$ gem install sinatra
Sequel, Maruku, and Syntax are all vendored.
== Setup
Edit main.rb and change the Blog config struct at the top to your liking. For
security purposes, change the admin password and the admin cookie key and
value. These last two can be set to any random value you like, just choose
something other than the default.Then run the server:
$ ruby main.rb
And visit: http://localhost:4567
Log in with the password you selected, then click New Post. The rest should be
self-explanatory.In production, you'll probably want to run "rake start" to start (and restart)
the server. Change the value of "port" at the top of the Rakefile to run on a
different port.== Database
The default is a SQLite file named blog.db. To use something else, set
DATABASE_URL in your environment when running the app, i.e.:$ DATABASE_URL='mysql://localhost/myblog' ruby main.rb
Or, modify the Sequel.connect statement at the top of main.rb.
The database will be created automatically when the server is executed.
== Comments
There are no comments by default. If you wish to activate comments, create an
account and a website on Disqus (disqus.com) and enter the website shortname as
the :disqus_shortname value in the Blog config struct.== Import data
Christopher Swenson has a Wordpress importer: http://github.com/swenson/scanty_wordpress_import
Other kinds of data can be imported easily, take a look at the rake task :import for an example of loading from a YAML file with field names that match the database schema.
== Customize
There are no themes or settings beyond the basic ones in the Blog struct. Just
edit the CSS or the code as you see fit.== Meta
Written by Adam Wiggins
Patches contributed by: Christopher Swenson, S. Brent Faulkner, and Stephen Eley
Released under the MIT License: http://www.opensource.org/licenses/mit-license.php
http://github.com/adamwiggins/scanty
http://adam.blog.heroku.com