{"id":13561926,"url":"https://github.com/vladimirlogachev/elm-land-docker-example","last_synced_at":"2025-04-10T05:23:28.506Z","repository":{"id":215967767,"uuid":"740144577","full_name":"vladimirlogachev/elm-land-docker-example","owner":"vladimirlogachev","description":"Assets caching, Docker setup, app configured at runtime","archived":false,"fork":false,"pushed_at":"2024-05-20T00:36:21.000Z","size":1027,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T01:12:29.870Z","etag":null,"topics":["api-rest","assets","docker","elm","elm-land","elm-lang","spa"],"latest_commit_sha":null,"homepage":"","language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vladimirlogachev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-01-07T16:53:01.000Z","updated_at":"2024-10-29T13:08:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"e621f888-4a65-4072-8cc4-ebb62fd884ac","html_url":"https://github.com/vladimirlogachev/elm-land-docker-example","commit_stats":null,"previous_names":["vladimirlogachev/elm-land-docker-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladimirlogachev%2Felm-land-docker-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladimirlogachev%2Felm-land-docker-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladimirlogachev%2Felm-land-docker-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladimirlogachev%2Felm-land-docker-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vladimirlogachev","download_url":"https://codeload.github.com/vladimirlogachev/elm-land-docker-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248161731,"owners_count":21057643,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-rest","assets","docker","elm","elm-land","elm-lang","spa"],"created_at":"2024-08-01T13:01:02.635Z","updated_at":"2025-04-10T05:23:28.480Z","avatar_url":"https://github.com/vladimirlogachev.png","language":"Elm","funding_links":[],"categories":["Elm"],"sub_categories":[],"readme":"# Elm Land Docker Example\n\n# \u003cimg src=\"docs/demo.png\" alt=\"Elm Land Docker Example\" width=\"100%\"/\u003e\n\n## Features\n\n- Assets caching (set up in container too)\n- Docker build (can be deployed in private environment)\n- Application is configured at runtime via environment variables:\n  - Application config\n  - Whether or not to allow indexing (`robots.txt`)\n- Deployment can be done without accessing the source code (Docker image doesn't contain any sources, and customer can parametrize the app via environment variables and deploy wherever they want)\n\n## Prerequisites\n\n- NPM\n- Docker\n\n## Local development (without Docker)\n\n- Install dependencies and start dev server\n\n  ```sh\n  npm i\n  npm start\n  ```\n\n- Open http://localhost:1234\n\n## Docker\n\n- Build and run Docker container\n\n  ```sh\n  docker build -t elm-land-docker-example . \u0026\u0026\n    docker container run \\\n      -p 1234:80 \\\n      -e WEBAPP_ALLOW_INDEXING=\"true\" \\\n      -e WEBAPP_BACKEND_URL=\"https://en.wikipedia.org/api\" \\\n      elm-land-docker-example\n  ```\n\n- Open http://localhost:1234\n\n## How to add new env variables:\n\n- `public/nocache/config.json` (and set default value for local development)\n- `configs/nginx.on-startup.sh` (see the end of file)\n- `src/Shared/Config.elm` (decode and use new values in your Elm app)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvladimirlogachev%2Felm-land-docker-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvladimirlogachev%2Felm-land-docker-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvladimirlogachev%2Felm-land-docker-example/lists"}