aboutsummaryrefslogtreecommitdiff
path: root/README.org
blob: 3e3a56aa14453cdadef7deba3ec173c6cf304bed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
* weather

A simple server serving 7 day weather forecast of Victoria, Australia,
using xmls from BoM.

** Install
#+begin_src sh
cabal install
#+end_src

** Run
#+begin_src sh
~/.cabal/bin/weather
#+end_src

Then open a browser and navigate to <http://localhost:3000> to learn
about the Melbourne weather for the next 7 days.

For weather that is not in Melbourne, add /city/<cityName>, e.g. 
<http://localhost:3000/city/Bendigo>.

Also serving JSON: <http://localhost:3000> and
 <http://localhost:3000/json/city/Bendigo>.