Skip to content

Latest commit

 

History

History

backend

Haskell Backend - Servant Web Server

Haskell Setup

  1. If you haven't already, install Stack
    • On POSIX systems, this is usually curl -sSL https://get.haskellstack.org/ | sh

Start server locally:

  1. Set environment variables:
API_PORT=9000 
EKG_PORT=9001 
ENV=Dev 
AUTH_API=http://localhost:9011/api/ # assumes that FusionAuth is listening there
  1. Run server: stack run

Alternatively, do it in one go:

$ API_PORT=9000 EKG_PORT=9001 ENV=Dev AUTH_API=http://localhost:9011/api/ stack run
Starting server at http://localhost:9000

Continuously build project when developing

$ stack build --fast --file-watch --exec=clear