Tree @cv (Download .tar.gz)
mmm
mmm is not the www, because it runs on MoonScript.
live version at mmm.s-ol.nu.
What?
This repo is roughly split into three parts:
mmm.dom
,mmm.component
: polymorphic Lua/Moonscript modules for web development.
[code:mmm
- docs]mmmfs
: the CMS/FS powering mmm.s-ol.nu.
[code:mmm/mmmfs
- article]- the page contents: includes my portfolio, blog, experiments...
authored using a mix of Moonscript, Markdown and HTML, thanks to the power ofmmmfs
.
[data:root
, but you might want to read a bit about mmmfs before you jump in.]
Building & Viewing
mmm is built using tup.
You can build the static content with:
$ tup init
$ tup
Then you can run the interactive server (build/server.moon
):
$ moon build/server.moon fs
You can then view the website in your browser.
It should be availabe at http://localhost:8000
.
Dependencies
Required dependencies:
- MoonScript:
luarocks install moonscript
- lua-http:
luarocks install http
For unit tests:
- busted:
luarocks install busted
Not required but recommended:
- lua-sqlite3:
luarocks install sqlite3
(for SQLite3 backend) - lua-cjson:
luarocks install lua-cjson 2.1.0-1
(for server-side JSON support) - discount:
luarocks install discount
(requires libmarkdown2, for Markdown support)
Live Reloading (during development)
During development you may want to automatically rebuild the project as files are changed. You can let tup automatically rebuild the client runtime and stylesheet with the following command:
$ tup monitor -f -a
entr is useful for reloading the realtime server when code outside the root changes:
$ ls {build,mmm}/**.moon | entr -r moon build/server.moon fs
Commit History
@cv
git clone https://git.s-ol.nu/mmm.git
- cv wip s-ol 2 years ago
- portfolio: corrections s-ol 2 years ago
- video/*+gif support s-ol 2 years ago
- fix games/IYNX s-ol 2 years ago
- games/fake-artist: better UI s-ol 2 years ago
- add games/fake-artist s-ol 2 years ago
- fix titles ending with n s-ol 3 years ago
- research/alivecoding: fix typo s-ol 3 years ago
- research/alivecoding: capitalize s-ol 3 years ago
- research/alivecoding: clarify benefits s-ol 3 years ago
- alivecoding page s-ol 3 years ago
- styling fixes? s-ol 3 years ago
- link_interactive for hybrid pages s-ol 3 years ago
- realities default to clientside s-ol 3 years ago
- rename articles to research s-ol 3 years ago
- fix conversion want wildcard s-ol 3 years ago
- text/html as default web view s-ol 3 years ago
- small fixes s-ol 3 years ago
- fix blog s-ol 3 years ago
- add fabacademy link s-ol 3 years ago
- ignore facet names starting with dots (fs) s-ol 3 years ago
- static rendering root prefix s-ol 3 years ago
- fix static rendering s-ol 3 years ago
- add workshops section s-ol 3 years ago
- merge fixes s-ol 3 years ago
- Merge branch 'ba' s-ol 3 years ago
- update README.md s-ol 3 years ago
- DOI references s-ol 3 years ago
- introduction s-ol 3 years ago
- section intros s-ol 3 years ago