Skip to content

hskoans/yesodrest

Repository files navigation

Yesod starter

This is a simple Yesod starter to help people new to Haskell/Yesod development to get up and running with minimal fuss.

  1. We use Haskell Platform to simplify setting up our base Haskell compilers and dependencies.
  2. We also use the cabal sandbox command line utility (which is included in Haskell Platform) to manage project-level dependencies.
  3. And we use Kenneth Reitz's awesome autoenv to ensure that we set the correct environment variables and PATH whenever we cd into our project directory.

Step-by-step

mkdir YOUR_PROJ_DIR  # Use whatever directory/project name of your choice of course
cd YOUR_PROJ_DIR
curl -O https://raw.githubusercontent.com/hskoans/yesodrest/master/.env
cd .
  • Meanwhile, if you don't want coffee, you can make use of the lengthy compilation time to set up postgresql db accordingly, including creating your postgresql user, password
  • Whenever the yesod source files becomes available, update config/settings.yml to use your postgresql db, user, password
  • Run yesod devel to start the dev server at default port 3000

Your end-state of running the above steps should give you a project repository just like this one.

Releases

No releases published

Packages

No packages published