{"id":29688979,"url":"https://github.com/nielsbom/elixir_simple_json_app","last_synced_at":"2025-10-14T03:39:50.832Z","repository":{"id":138804652,"uuid":"257178973","full_name":"nielsbom/elixir_simple_json_app","owner":"nielsbom","description":"Simple Elixir starter app with deployment to Heroku","archived":false,"fork":false,"pushed_at":"2020-04-27T13:47:38.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-23T05:44:47.335Z","etag":null,"topics":["elixir","heroku"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/nielsbom.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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-04-20T05:19:37.000Z","updated_at":"2020-04-27T13:47:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"29bccea0-82d1-4653-88e6-016612190c0f","html_url":"https://github.com/nielsbom/elixir_simple_json_app","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/nielsbom/elixir_simple_json_app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nielsbom%2Felixir_simple_json_app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nielsbom%2Felixir_simple_json_app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nielsbom%2Felixir_simple_json_app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nielsbom%2Felixir_simple_json_app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nielsbom","download_url":"https://codeload.github.com/nielsbom/elixir_simple_json_app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nielsbom%2Felixir_simple_json_app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272815816,"owners_count":24997661,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["elixir","heroku"],"created_at":"2025-07-23T05:39:16.360Z","updated_at":"2025-10-14T03:39:50.507Z","avatar_url":"https://github.com/nielsbom.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Elixir: simple JSON app\n\n## Running the app locally\n\n- `git clone git@github.com:nielsbom/elixir_simple_json_app.git`\n- `cd elixir_simple_json`\n- `mix deps.get`\n- `mix release --overwrite` to create a dev release\n- `PORT=4000 _build/dev/rel/simple_json_app/bin/simple_json_app start` to run the app\n- go to [http://localhost:4000/foo?a=1\u0026b=2](http://localhost:4000/foo?a=1\u0026b=2) to view the app locally\n\n## Using the template for another project\n\n- remove the `.git` directory\n- `git init`\n- rename the files and folders, for example: `simple_json_app.ex` to `your_choice.ex`\n- rename the application name: `:simple_json_app` to `:your_choice` in a bunch of files\n- rename the module names: `SimpleJsonApp` to `YourChoice`\n- rename the Dockerfile entrypoint\n- rename the `.gitignore` tar entry\n- `git commit -am \"Initial commit for Your Choice\"`\n\n## Deploying to Heroku\n\n- in the [Heroku dashboard](https://dashboard.heroku.com/new-app) make a new app\n- give your app a name in Heroku: \"qux\"\n- use the Heroku Container Registry to deploy with a Docker container\n- now we use the Heroku CLI\n- make sure you're logged in\n- `heroku container:push web -a qux` (takes a couple of minutes)\n- `heroku container:release web -a qux`\n- to view the logs: `heroku logs --tail -a qux`\n- now visit your app at [https://qux.herokuapp.com/foo?a=1\u0026b=2](https://qux.herokuapp.com/foo?a=1\u0026b=2)\n- your logs should show the visit\n\n## Sources\n\nI used code from [this blogpost](https://medium.com/@qhwa_85848/build-docker-images-from-an-elixir-project-why-and-how-78e19468210).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnielsbom%2Felixir_simple_json_app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnielsbom%2Felixir_simple_json_app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnielsbom%2Felixir_simple_json_app/lists"}