Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A Hacker News clone in Clojure
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
resources/public
src/hsnews
.gitignore
README.md
project.clj

README.md

hsnews

A Hacker News clone written in Clojure using Noir.

Created for Hacker School batch[2].

Example

A live version is viewable at http://news.hackerschool.com. Login on this site is restricted to Hacker School students and alumni.

Usage

First install leiningen

brew install leiningen

Clone this repository and run

lein deps
lein ring server

By default, new user registration is disabled. If you want to enable user registration, uncomment the relevant lines in src/hsnews/views/common.clj and src/hsnews/views/user.clj.

Deployment

Deployment specific code for dotcloud is included in src/hsnews/db.clj to load environment variables. If a DOTCLOUD_DATA_MONGODB_URL variable isn't present, then the site falls back to using a local mongodb database.

There is also the ability to use an external server for authentication. By default, users are authenticaed against the local database. If an AUTH_URL environment variable is present then that URL will be used for authentication.

License

Copyright (C) 2012 Hacker School

Distributed under the terms of the AGPL

Something went wrong with that request. Please try again.