Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Latest commit

 

History

History
36 lines (18 loc) · 1.27 KB

README.md

File metadata and controls

36 lines (18 loc) · 1.27 KB

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