diff options
author | Yuchen Pei <hi@ypei.me> | 2022-05-20 00:12:17 +1000 |
---|---|---|
committer | Yuchen Pei <hi@ypei.me> | 2022-05-20 00:12:17 +1000 |
commit | 6edd51594b9aa2f18ad107d0ad2a1a4db0127e21 (patch) | |
tree | e62ca36337379476d48ab259cdeb4f79b54c5494 /README.org |
Diffstat (limited to 'README.org')
-rw-r--r-- | README.org | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/README.org b/README.org new file mode 100644 index 0000000..3e3a56a --- /dev/null +++ b/README.org @@ -0,0 +1,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>. |