* Opiskelijamajoitus.net
  description of the service here
* Development
** External dependencies
   postgresql, postgresql development

** Configuring postgresql
   Create new user =omanet_dev=

   #+BEGIN_SRC sh
   createuser --interactive
   createdb -O omanet_dev omanet_dev
   createdb -O omanet_dev omanet_test
   #+END_SRC

   with psql
   #+BEGIN_SRC sql
   alter user omanet_dev with password 'omanet';
   #+END_SRC

** Run tests
   #+BEGIN_SRC sh
   stack test
   #+END_SRC

** Starting the development server
  #+BEGIN_SRC sh
  stack build yesod-bin cabal-install --install-ghc # Install the yesod command line tool
  stack build                                       # Build libraries
  stack exec -- yesod devel                         # Launch devel server
  #+END_SRC

  View your development site at http://localhost:3000/


* Opiskelijamajoitus.net
  description of the service here
* Development
** External dependencies
   postgresql, postgresql development

** Configuring postgresql
   Create new user =omanet_dev=

   #+BEGIN_SRC sh
   createuser --interactive
   createdb -O omanet_dev omanet_dev
   createdb -O omanet_dev omanet_test
   #+END_SRC

   with psql
   #+BEGIN_SRC sql
   alter user omanet_dev with password 'omanet';
   #+END_SRC

** Run tests
   #+BEGIN_SRC sh
   stack test
   #+END_SRC

** Starting the development server
  #+BEGIN_SRC sh
  stack build yesod-bin cabal-install --install-ghc # Install the yesod command line tool
  stack build                                       # Build libraries
  stack exec -- yesod devel                         # Launch devel server
  #+END_SRC

  View your development site at http://localhost:3000/

** Adding a new handler
   We are building on top of the yesod [[http://www.yesodweb.com/book/scaffolding-and-the-site-template][scaffolding]]. To add a new
   handler, quite many places have to be touched. use

   #+BEGIN_SRC sh
   stack exec -- yesod add-handler
   #+END_SRC

   to make it easier.
   

Add help on creating routes
Add help on creating routes
