Organize application logic by core/feature breakouts, add dhall configuration support and add a range of new config options in the Reader, add example configuration/deployment files

This commit is contained in:
2022-07-01 20:34:29 -05:00
parent b4d6e9c9d1
commit f7a61dcddc
15 changed files with 260 additions and 22 deletions

11
examples/Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM haskell:9.0.2
WORKDIR /app
ADD . /app
RUN stack setup
RUN stack build --copy-bins --local-bin-path ./
EXPOSE 3000
CMD ./Purr-exe

10
examples/config.dhall Normal file
View File

@ -0,0 +1,10 @@
-- /config.dhall
{ hostname = "localhost"
, port = +3001
, environment = "development"
, adminDB = "admin"
, dataDB = "data"
, collection = "store"
, mongoUsername = "root"
, mongoPassword = "REPLACEME"
}