Welcome to the DenverFP website repository!
This is a Haskell application using the Yesod web framework.
- Install the
stack
build tool for Haskell projects. - Run
stack setup
to install the compiler. - Setup Postgresql according to the instructions below.
stack test
will build all the dependencies and run the test suite.
- Run
stack build yesod-bin
to install the dev tools - Run
stack exec -- yesod devel
to run the development server - Open
https://localhost:3000
to see the website.
The application uses PostgreSQL. To initialize the database, install PostgreSQL on your system.
- Run
sudo su postgres
to enter a shell as Postgres user. - Run
createdb denverfp
to create the development database. - Run
createdb denverfp_test
to create the test database. - Run
createuser denverfp
to create the dev user - Run
psql
to enter a Postgres shell - Do
ALTER USER denverfp WITH PASSWORD 'denverfp'
to set the password for the user