Skip to content
haskellers.com site
Haskell Other
Latest commit 82d52b0 Mar 31, 2016 @snoyberg Update secret
Failed to load latest commit information.
Handler Get SES creds from environment May 26, 2015
Model Clean up warnings Sep 30, 2014
Settings yesod 1.1 Jul 8, 2012
app Don't use the fake dist directory commercialhaskell/stack#520 Jul 5, 2015
config removed obsolete entity attributes Nov 10, 2015
docker Add missing shared libraries for Docker May 26, 2015
kube Update secret Mar 31, 2016
messages added French translation for the site Nov 5, 2015
static Remove Google #17 Apr 28, 2015
templates Add link to functional works Jan 7, 2016
.gitignore Include client session key in secrets Oct 7, 2015
.travis.yml Scale back Travis matrix Oct 4, 2015
API.markdown
Application.hs Fix warning Oct 4, 2015
Foundation.hs added French translation for the site Nov 5, 2015
Import.hs yesod 1.1 Jul 8, 2012
LICENSE yesod 1.1 Jul 8, 2012
Model.hs Clean up warnings Sep 30, 2014
README.md ignore configuration files. copy them since they will be removed! Sep 30, 2015
Settings.hs Fix a warning Oct 12, 2015
StaticFiles.hs
TODO
api-test.hs JSON API Oct 6, 2010
cabal.config Use LTS snapshot Apr 28, 2015
devel-server.hs Added bling page Feb 4, 2011
devel.hs
docker.sh Dockerized and stackified May 26, 2015
fastcgi.hs Threaded FastCGI Oct 6, 2010
haskellers.cabal Upgrade to LTS 3.7 Oct 12, 2015
routes Poll closing Nov 26, 2011
stack.yaml
upload.sh yesod 1.1 Jul 8, 2012

README.md

Haskellers

Full source code for the haskellers.com website. Use as a base for your own Haskell/Yesod applications or as a sample application to help with learning Haskell/Yesod

System Requirements

You must have Haskell, Yesod and Postgresql installed.

Instructions for installing Haskell and Yesod are available at http://www.yesodweb.com/page/quickstart

You will also need to install libicu-dev. This can be installed on debian based machines with:

apt-get install libicu-dev

Installation

  1. Download the source code to an appropriate folder. Just run:

    git clone https://github.com/snoyberg/haskellers.git`
    

    Alternatively download the zip archive at https://github.com/snoyberg/haskellers/archive/master.zip and extract to a suitable folder.

  2. cd to the haskellers directory created above.

  3. Download and install local copies of all the libraries needed by haskellers.com. using the Stack tool:

    stack install yesod-bin cabal-install --install-ghc && stack build
    
  4. create a new postgresql database for the haskellers data. Just run:

    sudo su - postgres
    psql template1
    CREATE USER <username> WITH PASSWORD '<pwd>';
    CREATE DATABASE <dbname>;
    GRANT ALL PRIVILEGES ON DATABASE <dbname> TO <name>;
    \q
    
  5. Copy config/db/postgresql.yml.example to config/db/postgresql.yml, and edit the latter to reflect the choices you made in step 4.

  6. Copy config/db/aws.example to config/db/aws, and in the latter replace SOME-ACCESS-KEY and SOME-SECRET-KEY with random, unguessable strings.

  7. Start the haskellers application by running stack exec -- yesod devel.

Something went wrong with that request. Please try again.