{"id":24097329,"url":"https://github.com/0xataru/cardcheck","last_synced_at":"2026-03-07T11:02:25.263Z","repository":{"id":229174424,"uuid":"776000551","full_name":"0xataru/cardcheck","owner":"0xataru","description":"Simple validator for credit card number and expiration date","archived":false,"fork":false,"pushed_at":"2025-05-25T22:46:17.000Z","size":45,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-12T14:52:04.220Z","etag":null,"topics":["docker","docker-compose","fintech","golang","validator"],"latest_commit_sha":null,"homepage":"","language":"Go","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/0xataru.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,"zenodo":null}},"created_at":"2024-03-22T13:32:12.000Z","updated_at":"2025-05-25T22:46:20.000Z","dependencies_parsed_at":"2024-03-27T11:47:17.860Z","dependency_job_id":"66359de7-670b-4c1d-9f2e-98e9397731e8","html_url":"https://github.com/0xataru/cardcheck","commit_stats":null,"previous_names":["markraiter/cardcheck","ataru993/cardcheck","0xataru/cardcheck"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/0xataru/cardcheck","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xataru%2Fcardcheck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xataru%2Fcardcheck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xataru%2Fcardcheck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xataru%2Fcardcheck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xataru","download_url":"https://codeload.github.com/0xataru/cardcheck/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xataru%2Fcardcheck/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30212103,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T09:02:10.694Z","status":"ssl_error","status_checked_at":"2026-03-07T09:02:08.429Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["docker","docker-compose","fintech","golang","validator"],"created_at":"2025-01-10T13:26:58.575Z","updated_at":"2026-03-07T11:02:25.242Z","avatar_url":"https://github.com/0xataru.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cardcheck API\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/markraiter/cardcheck)](https://goreportcard.com/report/github.com/markraiter/cardcheck)\n\n\nThis is an API for validating credit cards.\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes.\n\n### Prerequisites\n\n- Go version 1.22.0\n- Docker (optional)\n\n### Installing\n\nA step by step series of examples that tell you how to get a development environment running.\n\n1. Clone the repository\n2. Install the dependencies with `go mod download`\n3. Create `.env` file and copy values from `.env_example`\n4. Follow the instructions to install [Taskfile](https://taskfile.dev/installation/) utility\n5. Run the server with `task run`\n\n## Running the tests\n\n1. Run the tests with `task test`\n2. Also you can proceed with the [OpenAPI](https://swagger.io/) docs by link `localhost:3000/swagger`\n\n## API Examples\n\n### Successful Request\n```bash\ncurl -X POST http://localhost:3000/check \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"card_number\": \"5167803252097675\",\n    \"expiration_month\": \"12\",\n    \"expiration_year\": \"2029\"\n  }'\n```\n\nResponse:\n```json\n{\n  \"valid\": true,\n  \"error\": null\n}\n```\n\n### Failed Request (Invalid Card Number)\n```bash\ncurl -X POST http://localhost:3000/check \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"card_number\": \"5167803252097676\",\n    \"expiration_month\": \"12\",\n    \"expiration_year\": \"2029\"\n  }'\n```\n\nResponse:\n```json\n{\n  \"valid\": false,\n  \"error\": {\n    \"code\": \"001\",\n    \"message\": \"invalid card number\"\n  }\n}\n```\n\n## Deployment\n\nYou can also run the service in Docker container with `task run-container`\n\n## Built With\n\n- [Go](https://golang.org/) - The programming language used.\n- [Docker](https://www.docker.com/) - Used for containerization.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xataru%2Fcardcheck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xataru%2Fcardcheck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xataru%2Fcardcheck/lists"}