{"id":25522366,"url":"https://github.com/launchscout/elixir-microservices-demo","last_synced_at":"2025-09-06T04:39:38.155Z","repository":{"id":42794125,"uuid":"272717259","full_name":"launchscout/elixir-microservices-demo","owner":"launchscout","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-06T09:04:20.000Z","size":1778,"stargazers_count":1,"open_issues_count":17,"forks_count":1,"subscribers_count":24,"default_branch":"master","last_synced_at":"2024-04-13T07:10:37.169Z","etag":null,"topics":[],"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/launchscout.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}},"created_at":"2020-06-16T13:36:18.000Z","updated_at":"2020-07-04T04:37:25.000Z","dependencies_parsed_at":"2023-02-05T18:32:13.745Z","dependency_job_id":null,"html_url":"https://github.com/launchscout/elixir-microservices-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchscout%2Felixir-microservices-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchscout%2Felixir-microservices-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchscout%2Felixir-microservices-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchscout%2Felixir-microservices-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/launchscout","download_url":"https://codeload.github.com/launchscout/elixir-microservices-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239708964,"owners_count":19684168,"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":[],"created_at":"2025-02-19T18:19:25.722Z","updated_at":"2025-02-19T18:19:26.326Z","avatar_url":"https://github.com/launchscout.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ELixir Microservices Demo\nThis repo consists of three Elixir apps that implement a simple inventory\napplication using the microservices architecture. One server manages\nauthentication, another the products and the last the User Interface.\n\n## Setup\nIn each of the subdirectories of this repo, run the following:\n```sh\nasdf install\nmix deps.get\nmix ecto.setup\n```\n\nIn the web_server directory only:\n```sh\ncd assets \u0026\u0026 npm install\n```\n\nFinally, create this file `web_server/config/dev.secret.exs` with this content:\n```elixir\nuse Mix.Config\n\nconfig :web_server, WebServerWeb.Authentication,\n  issuer: \"web_server\",\n  secret_key: \"replace-me-with-a-random-string\"\n\nconfig :web_server, WebServerWeb.Endpoint, server: true\n```\nAnd create this file `web_server/config/prod.secret.exs` with this content:\n```elixir\nuse Mix.Config\n\nconfig :web_server, WebServerWeb.Authentication,\n  issuer: \"web_server\",\n  secret_key: \"replace-me-with-a-random-string\"\n\nconfig :web_server, WebServerWeb.Endpoint,\n  http: [\n    port: String.to_integer(System.get_env(\"PORT\") || \"4000\"),\n    transport_options: [socket_opts: [:inet6]]\n  ],\n  secret_key_base: \"replace-me-with-a-random-string\"\n\nconfig :web_server, WebServerWeb.Endpoint, server: true\n```\n\n## Demo\nTo run the demo, run the following in separate terminals:\n```sh\ncd auth_server\niex --name auth_server@127.0.0.1 -S mix\n```\n```sh\ncd product_server\niex --name product_server@127.0.0.1 -S mix\n```\n```sh\ncd web_server\niex --name web_server@127.0.0.1 -S mix phx.server\n```\nOnce all apps are started: `open http://localhost:4000`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchscout%2Felixir-microservices-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaunchscout%2Felixir-microservices-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchscout%2Felixir-microservices-demo/lists"}