{"id":28452881,"url":"https://github.com/secmohammed/deck-poc","last_synced_at":"2026-05-05T14:02:46.852Z","repository":{"id":230509177,"uuid":"618698170","full_name":"secmohammed/deck-poc","owner":"secmohammed","description":"Deck Cards PoC Using Golang","archived":false,"fork":false,"pushed_at":"2023-03-25T14:08:11.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-11T13:34:00.596Z","etag":null,"topics":["api-testing","clean-architecture","docker","gin","golang","gorm","postgresql","viper"],"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/secmohammed.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":"2023-03-25T04:44:33.000Z","updated_at":"2023-03-25T14:20:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"2c78e350-d252-4e63-9eeb-272e1a093d08","html_url":"https://github.com/secmohammed/deck-poc","commit_stats":null,"previous_names":["secmohammed/deck-poc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/secmohammed/deck-poc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/secmohammed%2Fdeck-poc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/secmohammed%2Fdeck-poc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/secmohammed%2Fdeck-poc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/secmohammed%2Fdeck-poc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/secmohammed","download_url":"https://codeload.github.com/secmohammed/deck-poc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/secmohammed%2Fdeck-poc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32652474,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["api-testing","clean-architecture","docker","gin","golang","gorm","postgresql","viper"],"created_at":"2025-06-06T18:13:05.794Z","updated_at":"2026-05-05T14:02:46.845Z","avatar_url":"https://github.com/secmohammed.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"To run the application, you have to run\n```shell\ndocker compose up\n```\n- The application was designed to serve HTTP REST API at PORT 8000, but with consideration to pick the driver you need while exposing port (e.g: we can set gRPC driver and expose it as well)\n- The application is going to create the database if it doesn't exist and connect to it automatically. Therefore, there is no any prerequisites to bootstrap the app.  \n\n\u003e Create Deck Request\n```sh\ncurl --location -X POST 'localhost:8000/api/decks' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n  \"shuffle\": true\n}'\n```\n### For Deck Card Creation with filtered Cards\n\n```sh\ncurl --location -X POST 'localhost:8000/api/decks?cards=AS,KD,AC,2C,KH' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n  \"shuffle\": false \n}'\n```\n\u003e Open Deck By ID Request\n\n##### Note: Pass a valid UUID that's retrieved from the previous request\n\n```shell\ncurl  -X GET 'localhost:8000/api/decks/cb3e373f-a51c-421d-ad05-91aff0df890a' \\\n-H 'Content-Type: application/json' \n\n```\n\n\u003eDraw Card Request\n```shell\ncurl  -X PATCH 'localhost:8000/api/decks/cb3e373f-a51c-421d-ad05-91aff0df890a' \\\n-H 'Content-Type: application/json' \n```\n### To Draw multiple cards at once\n\n```sh\ncurl  -X PATCH 'localhost:8000/api/decks/cb3e373f-a51c-421d-ad05-91aff0df890a?count=1' \\\n-H 'Content-Type: application/json' \n```\n### FOR RUNNING TESTS \nAfter running docker compose up\n\nto start testing deck suite\n\u003e ENV=test go test -v ./tests/... -count=1   \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsecmohammed%2Fdeck-poc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsecmohammed%2Fdeck-poc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsecmohammed%2Fdeck-poc/lists"}