{"id":14986530,"url":"https://github.com/rdcm/web-api","last_synced_at":"2025-04-11T21:31:24.109Z","repository":{"id":198903026,"uuid":"701784274","full_name":"rdcm/web-api","owner":"rdcm","description":"Web api application prototype written in rust and actix-web.","archived":false,"fork":false,"pushed_at":"2024-10-02T18:29:50.000Z","size":194,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T18:45:47.720Z","etag":null,"topics":["actix-web","code-coverage","cqrs","docker","helm","integration-testing","kafka-consumer","kafka-producer","kubernetes","mongodb","mongodb-rust-driver","open-api","openapi","rdkafka","rust","swagger","swagger-ui","utopia"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/rdcm.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}},"created_at":"2023-10-07T14:47:56.000Z","updated_at":"2024-11-17T02:03:41.000Z","dependencies_parsed_at":"2023-11-13T01:26:18.656Z","dependency_job_id":"35fc9a47-0236-4110-9979-4cb72f9c33d6","html_url":"https://github.com/rdcm/web-api","commit_stats":{"total_commits":38,"total_committers":2,"mean_commits":19.0,"dds":"0.052631578947368474","last_synced_commit":"700fd59b57aa59e017a0591739d3f0d1b40c8695"},"previous_names":["rdcm/web-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdcm%2Fweb-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdcm%2Fweb-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdcm%2Fweb-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdcm%2Fweb-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rdcm","download_url":"https://codeload.github.com/rdcm/web-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248482942,"owners_count":21111404,"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":["actix-web","code-coverage","cqrs","docker","helm","integration-testing","kafka-consumer","kafka-producer","kubernetes","mongodb","mongodb-rust-driver","open-api","openapi","rdkafka","rust","swagger","swagger-ui","utopia"],"created_at":"2024-09-24T14:13:05.595Z","updated_at":"2025-04-11T21:31:23.628Z","avatar_url":"https://github.com/rdcm.png","language":"Rust","readme":"## About\n\nWeb api application prototype written in rust\n\n## Features\n\n- Clean architecture design with CQRS pattern\n- Crud api endpoints with actix-web and mongodb driver\n- Kafka Consumer implemented with `rdkafka` \n- Integration tests\n- Workspaces usage\n- OpenApi and Swagger-UI\n- Multi-stage docker build\n- Code coverage report\n- Static analysis report\n\n## Structure\n\n- `acl` - anti corruption layer implemented as kafka consumer\n- `api` - application layer with endpoints\n- `domain` - business logic contracts (queries/commands interfaces)\n- `domain_impl` - implementation of buisiness logic contracts\n- `infra` - infrastructure layer (dal)\n- `host` - host process for application with composition root\n- `integration-tests` - integration tests for application\n\n## Up \u0026 Running\n\nFrom root folder:\n- `make setup` - setup environment (brew, docker, helm, rust)\n- `make deploy` - deploy to kubernetes with helm (you should enable k8s support manually)\n- `make delete` - delete helm chart\n\nFrom src folder:\n- `make docker-up-env` - up environment only\n- `make docker-up-apps` - up all include applications\n- `make docker-down-env` - down environment only\n- `make docker-down-apps` - down all include applications\n- `make docker-build-apps` - build apps images\n- `make build` - build local binaries\n- `make lint` - run clippy for static analysis\n- `make format` - run fmt for code formatting\n- `make tests` - run tests\n- `make run` - run local build\n\n## Web interfaces:\n\nK8s:  \n`swagger`  - https://dev-wep-api.com/swagger-ui/  \n\nDocker-compose:  \n`swagger`  - http://localhost:8080/swagger-ui/  \n`kafka-ui` - http://localhost:8085/  ","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdcm%2Fweb-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frdcm%2Fweb-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdcm%2Fweb-api/lists"}