Herxheim2018
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 stringPORT
(number): The port the web server should run onADMIN_PASSWORD
(string): The password for the HTTP basic authentication protected admin areaSLEEPING_LIMIT
(number): The maximum number of people allowed to sleep in the gym/class roomsCAMPING_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