Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

skord/badhoc

Repository files navigation

Badhoc

Badhoc is an imageboard. It’s sort of fashioned like other popular ones, but has some features I wanted like threads that auto-update and pretty decent performance. It also has spam prevention and a ban system built in.

You’ve pretty much have to be out of your mind to run this, let alone any imageboard script really. I threw this together in 30 second sprints here and there (adhoc), it needs a ton of work, but if you want it, it’s here.

Now for the TL;DR…

Use

If you intend on actually using this, drop me a line, I’d like to know how it works out for you. My github account is skord, you can find me on irc.rizon.net sometimes by the same.

Getting started

You’ll need git, ruby, and rubygems. Optionally a database, if you’re running this in production, that’s a really good idea.

You’ll also need to get a project honeypot API key for HttpBL. This is an attempt to block spam before it hits your board.

…some other things I’m probably missing.

Quicklist:

git clone git://github.com/skord/badhoc.git

bundle

rake db:setup

rails s

Upgrading

Should you already have Badhoc running, I try to make sure you can git pull, run rake db:migrate, and possibly restart your application if need be without too much headache.

Project Honeypot Block List

Badhoc makes use of bpalmen’s httpbl rack middleware filter for httpbl. Read more at the HttpBL Project Page about getting a key. Badhoc expects your key to be an environmental variable ‘HTTPBL_KEY’, so something like:

HATREDCOPTER:badhoc mike$ export HTTPBL_KEY='THISISMYKEYYYYYYYYY'

needs to be done, or better yet, put it in your .profile.

Create an admin user

I turned off the registrable flag in devise, so you’ll have to create a rake task or create an admin user at the console

Try:

rails c

ruby > Admin.create!(:email => 'me@my.net', :password => 'password')

… but with obviously a better password and your real email.

TODO

  • FOR THE LOVE OF GOD WRITE SOME TESTS

  • Finish the iPhone views, never really tried anything like that before.

About

An Imageboard. Long Dead.

Resources

Stars

Watchers

Forks

Packages

No packages published