{"id":21855567,"url":"https://github.com/zeropsio/recipe-elixir","last_synced_at":"2026-02-02T20:36:19.874Z","repository":{"id":264017927,"uuid":"892085160","full_name":"zeropsio/recipe-elixir","owner":"zeropsio","description":"A Basic Elixir Recipe on Zerops","archived":false,"fork":false,"pushed_at":"2024-11-27T11:50:07.000Z","size":24,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-30T10:07:29.349Z","etag":null,"topics":["elixir-lang","zerops","zerops-recipe"],"latest_commit_sha":null,"homepage":"","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/zeropsio.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,"zenodo":null}},"created_at":"2024-11-21T13:37:39.000Z","updated_at":"2024-11-27T11:50:11.000Z","dependencies_parsed_at":"2024-11-21T15:26:35.833Z","dependency_job_id":"773c0f20-a807-4783-8e84-4ae7b9b1d8ed","html_url":"https://github.com/zeropsio/recipe-elixir","commit_stats":null,"previous_names":["zeropsio/recipe-elixir"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zeropsio/recipe-elixir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeropsio%2Frecipe-elixir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeropsio%2Frecipe-elixir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeropsio%2Frecipe-elixir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeropsio%2Frecipe-elixir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeropsio","download_url":"https://codeload.github.com/zeropsio/recipe-elixir/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeropsio%2Frecipe-elixir/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264232015,"owners_count":23576760,"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":["elixir-lang","zerops","zerops-recipe"],"created_at":"2024-11-28T02:16:23.723Z","updated_at":"2026-02-02T20:36:14.847Z","avatar_url":"https://github.com/zeropsio.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zerops x Elixir\nThis is a bare-bones example of an Elixir application running on [Zerops](https://zerops.io) — as few libraries as possible, just a simple endpoint with connnect, read and write to a Zerops PostgreSQL database.\n\n![elixir](https://github.com/zeropsio/recipe-shared-assets/blob/main/covers/svg/cover-elixir.svg)\n\n\u003cbr /\u003e\n\n## Deploy on Zerops\nYou can either click the deploy button to deploy directly on Zerops, or manually copy the [import yaml](zerops.yml) to the import dialog in the Zerops app.\n\n[![Deploy on Zerops](https://github.com/zeropsio/recipe-shared-assets/blob/main/deploy-button/green/deploy-button.svg)](https://app.zerops.io/recipe/elixir)\n\n\u003cbr/\u003e\n\n## Recipe features\n- **Plug** + **Cowboy** HTTP server running on a load balanced **Zerops Elixir** service\n- Zerops **PostgreSQL** service as database\n- Built with `plug_cowboy` for HTTP server functionality\n- **Ecto** for database interactions\n- Health check endpoint at `/status`\n- Utilization of Zerops' built-in **environment variables** system\n- JSON response handling with **Jason**\n\n\u003cbr/\u003e\n\n## Project Structure\nThe application consists of:\n- HTTP Router handling incoming requests\n- Database integration using Ecto\n- Simple entry creation and counting system\n- JSON response formatting\n\nKey endpoints:\n- `GET /` - Creates a new entry and returns count\n- `GET /status` - Health check endpoint\n\n\u003cbr/\u003e\n\n## Production vs. Development\nBase of the recipe is ready for production. For production deployment, consider:\n\n- Using highly available version of the PostgreSQL database (change `mode` from `NON_HA` to `HA` in recipe YAML)\n- Using at least two containers for the Elixir service (add `minContainers: 2` in recipe YAML)\n\nAdditional production considerations:\n- Use Zerops object storage for file storage\n- Implement Redis (Valkey) for caching and session management\n- Add comprehensive logging and monitoring\n- Implement proper error handling and reporting\n\n\u003cbr/\u003e\n\u003cbr/\u003e\n\nNeed help setting your project up? Join [Zerops Discord community](https://discord.com/invite/WDvCZ54).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeropsio%2Frecipe-elixir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeropsio%2Frecipe-elixir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeropsio%2Frecipe-elixir/lists"}