{"id":13508198,"url":"https://github.com/pigmej/exelli","last_synced_at":"2025-04-13T21:50:16.311Z","repository":{"id":33614082,"uuid":"37266307","full_name":"pigmej/exelli","owner":"pigmej","description":"Elli elixir wrapper with some sugar sytnax goodies.","archived":false,"fork":false,"pushed_at":"2022-06-05T14:54:34.000Z","size":31,"stargazers_count":16,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T12:11:07.604Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pigmej.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}},"created_at":"2015-06-11T14:33:30.000Z","updated_at":"2023-12-14T19:43:03.000Z","dependencies_parsed_at":"2022-09-12T22:01:47.504Z","dependency_job_id":null,"html_url":"https://github.com/pigmej/exelli","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/pigmej%2Fexelli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pigmej%2Fexelli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pigmej%2Fexelli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pigmej%2Fexelli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pigmej","download_url":"https://codeload.github.com/pigmej/exelli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248788855,"owners_count":21161726,"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":"2024-08-01T02:00:49.556Z","updated_at":"2025-04-13T21:50:16.271Z","avatar_url":"https://github.com/pigmej.png","language":"Elixir","funding_links":[],"categories":["Frameworks"],"sub_categories":[],"readme":"Exelli\n======\n\nElli elixir wrapper with some sugar sytnax goodies.\n\n\n## Hello world\n\n```elixir\ndefmodule MyHandler do\n  use Exelli.Handler\n\n  get [] do\n    {:ok, \"HELLO\"}\n  end\n\n  get [\"ping\"] do\n    {:ok, \"PONG\"}\n\n  end\n\n  get [\"test\"] do\n    {:ok, \"WORKS\"}\n  end\n\n  post [\"test\"] do\n    {:ok, \"POST WORKS\"}\n  end\n\nend\n```\n\nthen start elli with\n\n```elixir\n{:ok, pid} = Exelli.elli_start MyHandler.Simple\n```\n\n## Router\n\n\n```elixir\ndefmodule MyRouter do\n\n  use Exelli.Router\n\n  enable MyMiddleware, [prefix: [\"middleware\"]]\n  enable MyHandler\n\nend\n\n```\n\nand you can start it with\n\n```elixir\n{:ok, pid} = Exelli.elli_start MyRouter\n```\n\nIn fact, it's just a sugar syntax. You can still use:\n\n```elixir\n{:ok, pid} = Exelli.elli_start [{MyMiddleware, [prefix: [\"middleware1\"]]}, # normal prefix\n                                {MySubSimple, \"sub\"}, # easy prefix\n                                {MySimple, [prefix: []]}] # no prefix\n```\n\n\n## Elli middlewares\n\nYou can obviously enable any other elli middleware. Add it to mix.exs, and enable like:\n\n```elixir\n\ndefmodule MyRouter do\n\n  use Exelli.Router\n\n  enable MyMiddleware, [prefix: [\"middleware\"]]\n  enable MyHandler\n  enable :elli_date\n\nend\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpigmej%2Fexelli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpigmej%2Fexelli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpigmej%2Fexelli/lists"}