tmp-proc-example-0.7.0.0: Test a simple service with backends running on docker using tmp-proc
Copyright(c) 2020-2021 Tim Emiola
LicenseBSD3
MaintainerTim Emiola <adetokunbo@users.noreply.github.com>
Safe HaskellSafe-Inferred
LanguageHaskell2010

TmpProc.Example2.Server

Description

Implements a demo service.

Synopsis

Server implementation

data AppEnv Source #

An application-level environment suitable for storing in a Reader.

Constructors

AppEnv 

runServer' :: IO AppEnv -> Port -> IO () Source #

Runs waiApp on the given port.

runServer :: IO () Source #

Runs waiApp using defaults for local development.

waiApp :: AppEnv -> Application Source #

An Application that runs the server using the given DB and Cache.