git.s-ol.nu mmm / ba
update README.md s-ol 1 year, 9 months ago
1 changed file(s) with 10 addition(s) and 15 deletion(s). Raw diff Collapse all Expand all
2323 $ tup init
2424 $ tup
2525
26 Next you can render a sqlite3 mmmfs database using
26 Then you can run the interactive server (`build/server.moon`):
2727
28 $ moon build/render_all.moon db.sqlite3
29
30 Then, run some kind of HTTP server from within `out`, e.g. with python 3 installed:
31
32 $ cd root
33 $ python -m http.server
28 $ moon build/server.moon fs
3429
3530 You can then view the website in your browser.
36 The example above will provide it at `http://localhost:8000`.
37
38 During development you may want to automatically rebuild the project as files are changed.
39 You can do this with the following command:
40
41 $ tup monitor -f -a
31 It should be availabe at `http://localhost:8000`.
4232
4333 ### Dependencies
4434
5848 - [discount](https://luarocks.org/modules/craigb/discount): `luarocks install discount` (requires libmarkdown2, for Markdown support)
5949
6050 ### Live Reloading (during development)
61 [entr][entr] is useful for reloading the dev server when code outside the root changes:
51 During development you may want to automatically rebuild the project as files are changed.
52 You can let tup automatically rebuild the client runtime and stylesheet with the following command:
6253
63 $ ls build/**.moon mmm/**.moon | entr -r moon build/server.moon fs
54 $ tup monitor -f -a
55
56 [entr][entr] is useful for reloading the realtime server when code outside the root changes:
57
58 $ ls {build,mmm}/**.moon | entr -r moon build/server.moon fs
6459
6560 [moonscript]: https://moonscript.org/
6661 [mmm]: https://mmm.s-ol.nu/