{"id":25808165,"url":"https://github.com/nullstone-io/elixir-phoenix-quickstart","last_synced_at":"2026-05-14T06:36:06.007Z","repository":{"id":40401469,"uuid":"488806166","full_name":"nullstone-io/elixir-phoenix-quickstart","owner":"nullstone-io","description":"Elixir Phoenix Quickstart for Nullstone","archived":false,"fork":false,"pushed_at":"2023-08-18T14:54:13.000Z","size":60,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-06T08:58:39.659Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nullstone-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2022-05-05T02:26:56.000Z","updated_at":"2022-05-10T19:18:06.000Z","dependencies_parsed_at":"2025-02-27T21:59:43.644Z","dependency_job_id":"d1fb6651-b5ce-4ae7-a7eb-617e26213c64","html_url":"https://github.com/nullstone-io/elixir-phoenix-quickstart","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nullstone-io/elixir-phoenix-quickstart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullstone-io%2Felixir-phoenix-quickstart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullstone-io%2Felixir-phoenix-quickstart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullstone-io%2Felixir-phoenix-quickstart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullstone-io%2Felixir-phoenix-quickstart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nullstone-io","download_url":"https://codeload.github.com/nullstone-io/elixir-phoenix-quickstart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullstone-io%2Felixir-phoenix-quickstart/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33013287,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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":[],"created_at":"2025-02-27T21:59:29.162Z","updated_at":"2026-05-14T06:36:05.992Z","avatar_url":"https://github.com/nullstone-io.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Elixir Phoenix Quickstart\n\nThis is a Elixir Phoenix Quickstart for [Nullstone](https://nullstone.io).\nThis is based off the official Phoenix [Up and Running](https://hexdocs.pm/phoenix/up_and_running.html) guide.\n\n## How to launch via Nullstone\n\n1. Create postgresql datastore.\n2. Create a public web app. (Remember `app-name` for later)\n3. Add the postgresql datastore (from step 1) to the app.\n4. Add the `SECRET_KEY_BASE for Rails Cookies` capability to the app. (this capability works for Rails and Phoenix)\n5. Provision\n  ```shell\n  nullstone up --wait --block=\u003capp-name\u003e --env=\u003cenv-name\u003e\n  ```\n6. Build, push, and deploy\n  ```shell\n  docker build -t phoenix-quickstart .\n  nullstone launch --source=phoenix-quickstart --app=\u003capp-name\u003e --env=\u003cenv-name\u003e\n  ```\n\n## How to run locally\n\nYou can run this project locally inside Docker or using elixir alone.\nTo use docker, this project contains `docker-compose.yml` that runs with `MIX_ENV=dev`.\nThis setup ensures that using Docker doesn't inhibit typical development workflows:\n- Hot reload is configured so that changes to the app doesn't require a reboot\n- Dependencies are installed on boot of docker container\n\n### Hot reload\n\nThe `app` in `docker-compose.yml` is configured to automatically reload changes to files.\nYou do not need to rebuild/restart the phoenix app when making changes to code.\n\n### Update dependencies\n\nHowever, when updating dependencies, you will need to restart your docker container.\nThe dependencies will be installed on boot of the docker container.\n\n```shell\ndocker compose restart app\n```\n\n## Details about quickstart\n\nThis app was generated following these steps.\n1. `mix phx.new --app=elixir_phoenix_quickstart .`\n2. Change `config/dev.exs` to ensure local docker works:\n  ```elixir\n  # Binding to loopback ipv4 address prevents access from other machines.\n  # Change to `ip: {0, 0, 0, 0}` to allow access from other machines.\n  http: [ip: {0, 0, 0, 0}, port: String.to_integer(System.get_env(\"PORT\") || \"9000\")],\n  ```\n3. Change `config/dev.exs` to use env var for database url:\n  ```elixir\n  # Configure your database\n  config :elixir_phoenix_quickstart, ElixirPhoenixQuickstart.Repo, \n    url: System.get_env(\"DATABASE_URL\"), \n  #  username: \"postgres\",\n  #  password: \"postgres\",\n  #  hostname: \"localhost\",\n  #  database: \"elixir_phoenix_quickstart_dev\",\n    ...\n  ```\n4. `mix phx.gen.release --docker`\n5. Replace final stage of `Dockerfile`\n  ```\n  FROM nullstone/phoenix\n  # Only copy the final release from the build stage\n  COPY --from=builder /app/_build/${MIX_ENV}/rel/elixir_phoenix_quickstart ./\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullstone-io%2Felixir-phoenix-quickstart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnullstone-io%2Felixir-phoenix-quickstart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullstone-io%2Felixir-phoenix-quickstart/lists"}