{"id":16227847,"url":"https://github.com/d0x2f/birthday-checker-app","last_synced_at":"2025-03-19T13:31:13.590Z","repository":{"id":118797490,"uuid":"591626370","full_name":"d0x2f/birthday-checker-app","owner":"d0x2f","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-26T20:56:06.000Z","size":47,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T18:59:38.456Z","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/d0x2f.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":"2023-01-21T10:32:01.000Z","updated_at":"2024-01-25T04:51:46.000Z","dependencies_parsed_at":"2023-04-24T21:17:28.244Z","dependency_job_id":null,"html_url":"https://github.com/d0x2f/birthday-checker-app","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/d0x2f%2Fbirthday-checker-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d0x2f%2Fbirthday-checker-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d0x2f%2Fbirthday-checker-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d0x2f%2Fbirthday-checker-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d0x2f","download_url":"https://codeload.github.com/d0x2f/birthday-checker-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243992198,"owners_count":20380165,"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-10T12:53:59.276Z","updated_at":"2025-03-19T13:31:13.585Z","avatar_url":"https://github.com/d0x2f.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Birthday Checker\n\nStores names with birthdays and provides a route to find the number of days\nuntil a users next birthday.\n\n~It's currently hosted at https://birthday-checker-3vshm7xaxa-nw.a.run.app.~\n\n## Usage\n\nTo submit a name and a birthday, perform a `put` request like so:\n\n```\nPUT /hello/dylan\nContent-Type: application/json\n\n{\n    \"dateOfBirth\": \"1990-01-12\"\n}\n\n204 No Content\n```\n\nTo check a users birthday, use a `get` request:\n\n```\nGET /hello/dylan\n\n200 OK\ncontent-type: application/json\n\n{\n    \"message\": \"Hello, dylan! Your birthday is in 355 day(s)\"\n}\n\n```\n\n## Running\n\nAssuming your environment is authenticated to access the target google cloud platform.\n\nUsing cargo:\n\n```bash\n$ env FIRESTORE_PROJECT=\u003cmy-project-id\u003e cargo run\n```\n\nUsing docker (assuming google auth envvar is set):\n\n```bash\n$ docker build . -t birthday-checker:latest\n$ docker run \\\n  -e GOOGLE_APPLICATION_CREDENTIALS=/creds.json \\\n  -e FIRESTORE_PROJECT=\u003cmy-project-id\u003e \\\n  -v \"$GOOGLE_APPLICATION_CREDENTIALS:/creds.json\" \\\n  birthday-checker:latest\n```\n\n## Assumptions\n\n- Name is case sensitive, i.e. `dylan` is different from `Dylan` and `dYlAN`.\n- Timezones are ignored\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd0x2f%2Fbirthday-checker-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd0x2f%2Fbirthday-checker-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd0x2f%2Fbirthday-checker-app/lists"}