{"id":17659854,"url":"https://github.com/raphamorim/axum-service-checklist","last_synced_at":"2026-02-02T08:08:13.235Z","repository":{"id":58378123,"uuid":"488593796","full_name":"raphamorim/axum-service-checklist","owner":"raphamorim","description":"Template for Rust API with Axum and Tokio","archived":false,"fork":false,"pushed_at":"2022-08-31T06:38:43.000Z","size":14678,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-15T00:44:36.721Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raphamorim.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":"2022-05-04T13:11:33.000Z","updated_at":"2022-09-09T13:11:31.000Z","dependencies_parsed_at":"2022-09-09T17:00:48.899Z","dependency_job_id":null,"html_url":"https://github.com/raphamorim/axum-service-checklist","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/raphamorim%2Faxum-service-checklist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphamorim%2Faxum-service-checklist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphamorim%2Faxum-service-checklist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphamorim%2Faxum-service-checklist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raphamorim","download_url":"https://codeload.github.com/raphamorim/axum-service-checklist/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248986274,"owners_count":21194024,"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-10-23T16:08:28.274Z","updated_at":"2026-02-02T08:08:08.212Z","avatar_url":"https://github.com/raphamorim.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Axum service checklist\n\n```bash\nmake build debug=1 # cargo build\nmake build # cargo build --release\n```\n\n## Checklist\n\nFirst step is uncommenting the tests in the workflows, check out `.github/workflows/ci.yml`.\n\n- [ ] Create a hello word route on GET:`/hello-word` and write tests for it. Check out the `src/test.rs` file. It should return simply:\n\n```\nhello world\n```\n\n- [ ] Serve static files by serving the folder `resources`. Should be able to access `http://localhost:3000/static/great-wave.jpg` and return the image file:\n\n![Demo great wave](resources/demo.png)\n\n- [ ] Fix the CORS issue on the frontend (http://localhost:4000).\n\n![Cors](resources/cors.png)\n\n- [ ] Create a middleware to extend the headers and add a new header with a key as \"animal\" and value as random value between: \"dog\", \"cat\", \"monkey\" and \"sloth\".\n\n![Headers](resources/headers.png)\n\n- [ ] Implement a route GET:`/user` that parses a local JSON file `user.json` and returns a response with content-type \"application/json\" and with the body as:\n\n```json\n{\n\t\"name\": \"Emil\",\n\t\"age\": 7,\n\t\"email\": \"emil@viaplaygroup.com\"\n}\n```\n\n- [ ] Implement a route GET:`/users` that parses a local JSON file `users.json` and returns a response with content-type \"application/json\" and with the body as:\n\n```json\n[\n\t{\n\t\t\"name\": \"Emil\",\n\t\t\"age\": 7,\n\t\t\"email\": \"emil@viaplaygroup.com\"\n\t},\n\t{\n\t\t\"name\": \"Pipi\",\n\t\t\"age\": 8,\n\t\t\"email\": \"pipi@viaplaygroup.com\"\n\t}\n]\n```\n\n- [ ] Implement a route GET:`/dog` that makes a request to https://dog.ceo/api/breeds/image/random , parses the response and return the property `message` as:\n\n\n```json\n{\n\t\"dog\": \"https://images.dog.ceo/breeds/malinois/n02105162_299.jpg\"\n}\n```\n\n- [ ] Implement a route GET:`/dog?download=true` that makes a request to https://dog.ceo/api/breeds/image/random , parses the response and download the image to the resources folder and return the path in the response body, example:\n\n\n```json\n{\n\t\"dog\": \"http://localhost:3000/static/malinois/n02105162_299.jpg\"\n}\n```\n\n## Working with repo\n\nWe use `Make` as a primary build tool. Here are the most important commands,\nothers you will find in `Makefile`.\n\n#### `make build`\n\nInstalls dependencies and build it.\n\n#### `make docker-build`\n\nBuilds a Docker image for the service.\n\n#### `make test`\n\nRuns all the test suits: API, integration and unit tests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphamorim%2Faxum-service-checklist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraphamorim%2Faxum-service-checklist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphamorim%2Faxum-service-checklist/lists"}