mirror of
https://github.com/srid/ema.git
synced 2024-11-30 03:03:13 +03:00
1.1 KiB
1.1 KiB
order |
---|
1 |
Getting Started
Before proceeding with the tutorial section below, let's get the template app up and running locally:
- Install Nix1 and enable Flakes
- Clone the template repository locally
- Run
bin/run
2 and access the site at http://localhost:9001
That should start the Ema dev server displaying a simple website. Go ahead and try modifying either the Markdown content in ./content
or the Haskell source in ./src/Main.hs
, and observe how the web view updates instantly.
{.last} [Next]{.next}, in the tutorial let's try using this template repo to create a basic website.
-
Nix is optional, though it provides the best development experience. The template repository may work with plain
cabal
, but this is not officially tested. ↩︎ -
If you are using
cabal
rather than Nix, runghcid
in place ofbin/run
. ↩︎