- Full stack locally via Docker
Note: Database connections are handled via environment variables. You will have to supply your own database and configure ENV variables accordingly.
docker build -t elm-rust-app . && docker run --env PORT='1234' -p 1234:1234 elm-rust-app # starts this app at http://localhost:1234
- Just the front end
See dependecies below
elm-spa server # starts this app at http://localhost:1234
- Pushed to Google Cloud
This is WAY more work, but the
cloudbuild.yaml
is inciuded because I am using it. It can be ignored if using method 1 or 2. Link your Google Cloud Build with your Git Repo. Then Configure thecloudbuild.yaml
with your project-id etc . Then after struggling for hours its as simple as: Note: Database connections are configured with ENV variables, for google cloud those will have to be managed in the google cloud secret manager, then the cloudbuild.yaml will have to be modified to point to those.
git push origin main
This project requires the latest LTS version of Node.js
npm install -g elm elm-spa
elm-spa add # add a new page to the application
elm-spa build # production build
elm-spa watch # runs build as you code (without the server)