getting started

don't have elm yet? i gotchu

what's in this section?

  1. installing elm-spa
  2. creating a new project
  3. updating the layout
  4. adding in a page

installing elm-spa

Here's how to install elm-spa:

npm install --global elm-spa@latest

To see if that worked, run this:

elm-spa -v

You should see a version number print to the console.

making a new project

You can create a new project with the elm-spa init command:

elm-spa init elm-spa-dev

That created a folder called elm-spa-dev, so let's enter it with cd:

cd elm-spa-dev

Running npm start is all you need to get your app running!

npm start

adding in a page at /docs

This is how we can add a new page at http://localhost:1234/docs:

elm-spa add static Docs

If you'd like a better understanding of that command, you should check out the elm-spa add docs here!

next up: components