/herxheim2018

Registration web app for a juggling convention in Herxheim

Primary LanguageHaskellBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Herxheim2018

Build Status

Installation

$ stack setup
$ stack build

Run the server

$ createdb herxheim2018
$ env PORT=8080 SLEEPING_LIMIT=120 CAMPING_LIMIT=50 ADMIN_PASSWORD=admin DATABASE_URL='postgres://localhost/herxheim2018' stack exec herxheim2018-exe

Environment variables

The following environment variables need to be set:

  • DATABASE_URL (string): A PostgreSQL database connection string
  • PORT (number): The port the web server should run on
  • ADMIN_PASSWORD (string): The password for the HTTP basic authentication protected admin area
  • SLEEPING_LIMIT (number): The maximum number of people allowed to sleep in the gym/class rooms
  • CAMPING_LIMIT (number): The maximum number of people allowed to camp

Run the tests

$ createdb herxheim2018_test
$ env DATABASE_URL='postgres://localhost/herxheim2018_test' stack test

Deployment

The application is currently deployed to Heroku. For deployment run:

$ git remote add heroku https://git.heroku.com/herxheim2018.git
$ git push heroku master