Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
haskellers.com site
Haskell CSS Shell
Branch: master
Failed to load latest commit information.
Handler Get SES creds from environment
Model Clean up warnings
Settings yesod 1.1
app Don't use the fake dist directory commercialhaskell/stack#520
config Get SES creds from environment
docker Add missing shared libraries for Docker
messages Minor changes in translations
static Remove Google #17
templates Remove Google #17
tests Fixing grammar
.gitignore Dockerized and stackified
API.markdown 10 random users on homepage
Application.hs Get SES creds from environment
Foundation.hs Get SES creds from environment
Import.hs yesod 1.1
LICENSE yesod 1.1
Model.hs Clean up warnings
README.md Update and rename README to README.md
Settings.hs Clean up warnings
StaticFiles.hs GHC 7.4 changes
TODO Updated TODO
api-test.hs JSON API
cabal.config Use LTS snapshot
devel-server.hs Added bling page
devel.hs A few fixes
docker.sh Dockerized and stackified
entities HTML jobs
fastcgi.hs Threaded FastCGI
haskellers.cabal Don't use the fake dist directory commercialhaskell/stack#520
routes Poll closing
stack.yaml Dockerized and stackified
upload.sh yesod 1.1

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. Just run:

    cabal sandbox init
    cabal install --only-dependencies --reorder-goals --max-backjumps=-1
    
  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. Rename config/postgres-dummy.yml to config/postgres.yml and edit it to reflect the choices you made in step 4.

  6. Rename SESCred-dummy.hs to SESCred.hs. Replace the fake-secret-key and fake-access-key with random, unguessable strings.

  7. Start the haskellers application by running yesod devel.

Something went wrong with that request. Please try again.