{"id":19929318,"url":"https://github.com/gilcierweb/api-elixir","last_synced_at":"2025-06-15T14:37:58.745Z","repository":{"id":147165649,"uuid":"316627005","full_name":"gilcierweb/api-elixir","owner":"gilcierweb","description":"API Elixir and PostgreSQL with Plug (Standalone)","archived":false,"fork":false,"pushed_at":"2020-12-05T06:20:52.000Z","size":37,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T11:19:40.621Z","etag":null,"topics":["api-elixir","elixir","elixir-apps","elixir-lang","elixir-library","elixir-plug","elixir-wrapper","postgresql"],"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/gilcierweb.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}},"created_at":"2020-11-28T00:30:20.000Z","updated_at":"2024-06-22T17:58:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"a556227b-0328-4b65-ad05-75a0153b3c0b","html_url":"https://github.com/gilcierweb/api-elixir","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gilcierweb/api-elixir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilcierweb%2Fapi-elixir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilcierweb%2Fapi-elixir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilcierweb%2Fapi-elixir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilcierweb%2Fapi-elixir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gilcierweb","download_url":"https://codeload.github.com/gilcierweb/api-elixir/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilcierweb%2Fapi-elixir/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259991052,"owners_count":22942556,"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":["api-elixir","elixir","elixir-apps","elixir-lang","elixir-library","elixir-plug","elixir-wrapper","postgresql"],"created_at":"2024-11-12T22:42:30.632Z","updated_at":"2025-06-15T14:37:58.709Z","avatar_url":"https://github.com/gilcierweb.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# API Elixir and PostgreSQL with Plug (Standalone)\n\n**Mix generate project without frameworks(No Phoenix, No Maru and etc)**\n\n### Skills\n- Elixir\n- PostgreSQL\n\n### Setup Elixir (local)\nhttps://asdf-vm.com/#/core-manage-asdf\n\nhttps://github.com/asdf-vm/asdf-erlang\n\nhttps://github.com/asdf-vm/asdf-elixir\n\n### Development without docker\n```shell\nmix do deps.get, deps.compile, compile\nmix ecto.create \nmix ecto.migrate\n\nMIX_ENV=test mix ecto.create\nMIX_ENV=test mix ecto.migrate\nMIX_ENV=test mix test\n\niex -S mix\n\nmix run --no-halt # run http://localhost:4000\n\n```\nrun in local http://localhost:4000\n\n### List All Routes\n\n```elixir\n# get http://localhost:4000\n# get http://localhost:4000/gilcierweb\n# post http://localhost:4000/checkout # payload order\n# get http://localhost:4000/checkout/success # success order payment gateway\n# get http://localhost:4000/admin/authorized \n# get http://localhost:4000/admin/unauthorized\n# get http://localhost:4000/api/secret\n# get http://localhost:4000/api/open\n```\n\npost http://localhost:4000/checkout # payload order\n\n```json\n{\n  \"id\": 9987071,\n  \"store_id\": 282,\n  \"date_created\": \"2019-06-24T16:45:32.000-04:00\",\n  \"date_closed\": \"2019-06-24T16:45:35.000-04:00\",\n  \"last_updated\": \"2019-06-25T13:26:49.000-04:00\",\n  \"total_amount\": 49.9,\n  \"total_shipping\": 5.14,\n  \"total_amount_with_shipping\": 55.04,\n  \"paid_amount\": 55.04,\n  \"expiration_date\": \"2019-07-22T16:45:35.000-04:00\",\n  \"total_shipping\": 5.14,\n  \"order_items\": [\n    {\n      \"item\": {\n        \"id\": \"IT4801901403\",\n        \"title\": \"Produto de Testes\"\n      },\n      \"quantity\": 1,\n      \"unit_price\": 49.9,\n      \"full_unit_price\": 49.9\n    }\n  ],\n  \"payments\": [\n    {\n      \"id\": 12312313,\n      \"order_id\": 9987071,\n      \"payer_id\": 414138,\n      \"installments\": 1,\n      \"payment_type\": \"credit_card\",\n      \"status\": \"paid\",\n      \"transaction_amount\": 49.9,\n      \"taxes_amount\": 0,\n      \"shipping_cost\": 5.14,\n      \"total_paid_amount\": 55.04,\n      \"installment_amount\": 55.04,\n      \"date_approved\": \"2019-06-24T16:45:35.000-04:00\",\n      \"date_created\": \"2019-06-24T16:45:33.000-04:00\"\n    }\n  ],\n  \"shipping\": {\n    \"id\": 43444211797,\n    \"shipment_type\": \"shipping\",\n    \"date_created\": \"2019-06-24T16:45:33.000-04:00\",\n    \"receiver_address\": {\n      \"id\": 1051695306,\n      \"address_line\": \"Rua Fake de Testes 3454\",\n      \"street_name\": \"Rua Fake de Testes\",\n      \"street_number\": \"3454\",\n      \"comment\": \"teste\",\n      \"zip_code\": \"85045020\",\n      \"city\": {\n        \"name\": \"Cidade de Testes\"\n      },\n      \"state\": {\n        \"name\": \"São Paulo\"\n      },\n      \"country\": {\n        \"id\": \"BR\",\n        \"name\": \"Brasil\"\n      },\n      \"neighborhood\": {\n        \"id\": null,\n        \"name\": \"Vila de Testes\"\n      },\n      \"latitude\": -23.629037,\n      \"longitude\": -46.712689,\n      \"receiver_phone\": \"41999999999\"\n    }\n  },\n  \"status\": \"paid\",\n  \"buyer\": {\n    \"id\": 136226073,\n    \"nickname\": \"JOHN DOE\",\n    \"email\": \"john@doe.com\",\n    \"phone\": {\n      \"area_code\": 41,\n      \"number\": \"999999999\"\n    },\n    \"first_name\": \"John\",\n    \"last_name\": \"Doe\",\n    \"billing_info\": {\n      \"doc_type\": \"CPF\",\n      \"doc_number\": \"09487965477\"\n    }\n  }\n}\n```\n### Development with docker and docker-compose\n```shell\ndocker-compose build\ndocker-compose up # run http://localhost:4000\ndocker-compose run --rm web mix ecto.create\ndocker-compose run --rm web mix ecto.migrate\ndocker-compose run --rm web bash\n```\n\nrun with docker http://localhost:4000\n\nDocumentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)\nand published on [HexDocs](https://hexdocs.pm). Once published, the docs can\nbe found at [https://hexdocs.pm/api_elixir](https://hexdocs.pm/api_elixir).\n\nhttps://gilcierweb.com.br/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgilcierweb%2Fapi-elixir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgilcierweb%2Fapi-elixir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgilcierweb%2Fapi-elixir/lists"}