Skip to content

rpeszek/crud-ex-backend-yesod

Repository files navigation

Backend support for polyglot CRUD examples/experiments. (That currently is only elm crud-ex-frontend-elm).

See also my umbrella project: typesafe-web-polyglot.

GOALS:

  • Uses standard (i.e. scaffolded) Yesod project structure.
  • This is NOT an attempt to integrate Yesod/Julius templates with Elm, not like elm-yesod

TODO List:

  • Integrate wai-cors middleware instead of hardcoded cors logic
  • Improve JSON code
  • Improve error messages (duplicate key errors)
  • Login/Authorization security
  • Support for todo-s listed on the elm project page

To build:
This assumes you have stack installed.

stack build yesod-bin cabal-install --install-ghc
stack build

To run:
Environment variable YESOD_APP_ENV is used to configure simple CORS. That is only needed only when running un-deployed elm in elm-ractor.

export YESOD_APP_ENV=DEV
stack exec -- yesod devel

Releases

No releases published

Packages

No packages published