{"id":20760323,"url":"https://github.com/vanng822/ramlich","last_synced_at":"2026-06-20T20:31:30.751Z","repository":{"id":250154665,"uuid":"833610162","full_name":"vanng822/ramlich","owner":"vanng822","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-25T16:58:06.000Z","size":201,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T16:49:34.411Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/vanng822.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":"2024-07-25T11:51:00.000Z","updated_at":"2025-02-25T16:58:10.000Z","dependencies_parsed_at":"2024-09-16T18:28:15.405Z","dependency_job_id":"d00788a4-546b-4233-a39c-417ba46cfce7","html_url":"https://github.com/vanng822/ramlich","commit_stats":null,"previous_names":["vanng822/ramlich"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vanng822/ramlich","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanng822%2Framlich","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanng822%2Framlich/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanng822%2Framlich/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanng822%2Framlich/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vanng822","download_url":"https://codeload.github.com/vanng822/ramlich/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanng822%2Framlich/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34585195,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-17T10:13:09.135Z","updated_at":"2026-06-20T20:31:30.723Z","avatar_url":"https://github.com/vanng822.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ramlich\nRust version of https://github.com/vanng822/vncalendar\nAnd some testing of Rust around this and different frameworks/packages\n\n## Packages/Crates\n### amlich\nThis contains some functions to convert solar calendar date to lunar calendar date. The main calculation is taken from the original work, granted usage only for non-profit purpose.\n\n### vncalendar\nThis crate contains some utility functions for converting dates or operations on dates.\n\n## Flows\nRequest for /today\n\n```mermaid\nsequenceDiagram\n    Alice-\u003e\u003e+APIServer: GET /today\n    APIServer-\u003e\u003e+Kafka: Add RequestEvent\n    APIServer-\u003e\u003e-Alice: RequestEventId + Today Data\n    Kafka-\u003e\u003e+Consumer: New RequestEvent\n    Consumer-\u003e\u003e+Postgres: Add new RequestEvent\n```\n\nRequest for RequestEvent\n\n```mermaid\nsequenceDiagram\n    Alice-\u003e\u003e+Consumer: GET /request_event/{RequestEventId}\n    Consumer-\u003e\u003ePostgres: Fetch RequestEvent\n    Consumer-\u003e\u003e-Alice: RequestEvent\n```\n\n## Build api/web/task applications\n- Solar \u003c=\u003e Lunar date converter using actix-web\n- Swagger http://localhost:8181/swagger-ui/#/crate\n\n## Kafka \u0026 DB\nDrop some events from web and some consumer to pick up and store in Postgres\n- https://docs.rs/rdkafka/latest/rdkafka/\n- https://docs.rs/tokio-postgres/latest/tokio_postgres/\n\n## Killswitch\nFeature switch using Unleash\n- https://www.getunleash.io/\n\n```bash\nopen http://localhost:4242/\n```\nusername: admin\npassword: unleash4all\n\n## Dockerize\nCreate docker for applications\n\n```bash\nmake build\n```\n\n```bash\ndocker compose up\n```\n\n\n```bash\nopen http://localhost:8585/request_event/$(curl http://localhost:8181/today | jq -r .meta.request_event_id)\n```\nIf all go fast you should expect some response else refresh the link!\n\n## Other\n- Single instance with once_cell\n- Sending async with async-trait\n- Json with serde\n- HTTP request, proxy with reqwest, awc and actic-web\n- build mod/lib/crate\n- Writting tests\n- Macros, Inline, Conversion\n\n\n## Todos\n- Cross compiling\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanng822%2Framlich","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvanng822%2Framlich","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanng822%2Framlich/lists"}