Skip to content

nicholasbs/hsnews

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Hacker News clone in Clojure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published