elm-spa/examples/elm-spa-dev
2020-09-18 10:25:20 -05:00
..
public Update authentication.md 2020-09-18 10:25:20 -05:00
src Update Examples.elm 2020-08-02 17:27:53 -05:00
tests prepare for v5 2020-07-13 22:39:10 -05:00
.gitignore prepare for v5 2020-07-13 22:39:10 -05:00
elm.json prepare for v5 2020-07-13 22:39:10 -05:00
netlify.toml prepare for v5 2020-07-13 22:39:10 -05:00
package-lock.json add examples to website 2020-08-02 14:40:40 -05:00
package.json sitemap is life 2020-07-14 10:12:22 -05:00
README.md prepare for v5 2020-07-13 22:39:10 -05:00
sitemap.js prepare for v5 2020-07-13 22:39:10 -05:00

new elm-spa project

More documentation at https://elm-spa.dev

local development

You can get this site up and running with one command:

npm start

other commands to know

There are a handful of commands in the package.json.

Command Description
npm run dev Run a dev server and automatically build changes.
npm run test:watch Run tests as you code.
npm run build Build the site for production.
npm run test Run the test suite once, great for CI

deploying

After you run npm run build, the contents of the public folder can be hosted as a static site. If you haven't hosted a static site before, I'd recommend using Netlify (it's free!)

using netlify

Add a netlify.toml file next to this README, for standard SPA routing:

[[redirects]]
  from = "/*"
  to = "/index.html"
  status = 200

Build command: npm run build

Publish directory: public