Skip to content

Latest commit

 

History

History
68 lines (48 loc) · 2.11 KB

README.md

File metadata and controls

68 lines (48 loc) · 2.11 KB

devenv/elm-land/lamdera/ports/tailwind - DELPT

A template for starting your next Elm project with elm.land, styled with Tailwind and support for JS interop (Ports). Fast and repeatable development and CI environment with devenv. Continuous deployment to Lamdera.

Demo: https://delpt.lamdera.app/

Inspirations:

Local develop

Initial start

You need devenv. That's it. No fiddling with JS tooling nor containers.

$ devenv up
# open http://localhost:8000

Tooling

Either run $ devenv shell or install direnv for auto-loading of dev environment into your shell.

Deployment

Each commit to main is auto-deployed to https://delpt.lamdera.app/.

Each Pull Request gets a preview app at https://delpt-<BRANCH_NAME>.lamdera.app/. Like so: https://delpt-preview-app.lamdera.app/.

To have the same in your repo, you need to set the following secrets.

LAMDERA_TOKEN

Run lamdera login in your terminal. Copy the token from ~/.elm/.lamdera-cli and save it to https://github.com/<OWNER>/<REPO>/settings/secrets/actions as LAMDERA_TOKEN.

SSH_KEY

Run ssh-keygen -t rsa -b 4096 -f delpt -N "". Copy the contents of delpt and paste to https://github.com/<OWNER>/<REPO>/settings/secrets/actions as SSH_KEY.

Copy the contents of delpt.pub and paste into Add new key on https://dashboard.lamdera.app/account/sshkeys.