mesprague / denverfp

The website backend for DenverFP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

denverfp

Welcome to the DenverFP website repository!

This is a Haskell application using the Yesod web framework.

Setup:

  1. Install the stack build tool for Haskell projects.
  2. Run stack setup to install the compiler.
  3. Setup Postgresql according to the instructions below.
  4. stack test will build all the dependencies and run the test suite.

Development

  1. Run stack build yesod-bin to install the dev tools
  2. Run stack exec -- yesod devel to run the development server
  3. Open https://localhost:3000 to see the website.

Database Setup

The application uses PostgreSQL. To initialize the database, install PostgreSQL on your system.

Ubuntu:

  1. Run sudo su postgres to enter a shell as Postgres user.
  2. Run createdb denverfp to create the development database.
  3. Run createdb denverfp_test to create the test database.
  4. Run createuser denverfp to create the dev user
  5. Run psql to enter a Postgres shell
  6. Do ALTER USER denverfp WITH PASSWORD 'denverfp' to set the password for the user

About

The website backend for DenverFP


Languages

Language:Haskell 99.5%Language:Emacs Lisp 0.5%