{"id":30716955,"url":"https://github.com/dlzer/go-mux-api-boilerplate","last_synced_at":"2025-09-03T08:29:50.343Z","repository":{"id":114044903,"uuid":"354574661","full_name":"DLzer/go-mux-api-boilerplate","owner":"DLzer","description":"An implementation of a Gorilla Mux API in GO","archived":false,"fork":false,"pushed_at":"2021-06-18T22:29:22.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-31T07:58:21.020Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/DLzer.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":"2021-04-04T15:10:58.000Z","updated_at":"2021-09-10T13:58:43.000Z","dependencies_parsed_at":"2023-03-13T13:09:41.685Z","dependency_job_id":null,"html_url":"https://github.com/DLzer/go-mux-api-boilerplate","commit_stats":null,"previous_names":["dlzer/go-product-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DLzer/go-mux-api-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DLzer%2Fgo-mux-api-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DLzer%2Fgo-mux-api-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DLzer%2Fgo-mux-api-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DLzer%2Fgo-mux-api-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DLzer","download_url":"https://codeload.github.com/DLzer/go-mux-api-boilerplate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DLzer%2Fgo-mux-api-boilerplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273413503,"owners_count":25101210,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"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":"2025-09-03T08:29:42.368Z","updated_at":"2025-09-03T08:29:50.335Z","avatar_url":"https://github.com/DLzer.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Product API\n\n## Implements:\n-- Full testing\n-- Modeling\n-- Gorilla/Mux\n\n## Clone the repo\n```bash\n$ git clone github.com/DLzer/go-product-api\n```\n\n## Testing Database\nWe'll set up a test instance of PostgreSQL using docker for convenience using the following command\n```bash\n$ docker run --name postgres-docker -e POSTGRES_PASSWORD=postgres -p 5432:5432 -d postgres\n```\nThis will pull the Postgres image from docker, set the default password, the name for the container\nas well as setting the port to `5432`.\n\n## Set your default PostreSQL variables\nIf you're lucky enough to be working in a *nix system, run these to set the default environment variables\nfor connecting to your test database.\n```bash\nexport APP_DB_USERNAME=postgres\nexport APP_DB_PASSWORD=postgres\nexport APP_DB_NAME=postgres\n```\nOtherwise for windows, the easiest method is setting them via the environment variable manager. \n*Note* 1. Set the variables for the USER scope, not for system. 2. You'll have to log out, and back in\nfor the changes to take effect.\n\n## Running the tests\nRun the test suite with the following commands\n```bash\n$ go test -v\n```\nThe expected output should be:\n```bash\n=== RUN   TestEmptyTable\n--- PASS: TestEmptyTable (0.01s)\n=== RUN   TestGetNonExistentProduct\n--- PASS: TestGetNonExistentProduct (0.00s)\n=== RUN   TestCreateProduct\n--- PASS: TestCreateProduct (0.01s)\n=== RUN   TestGetProduct\n--- PASS: TestGetProduct (0.01s)\n=== RUN   TestUpdateProduct\n--- PASS: TestUpdateProduct (0.01s)\n=== RUN   TestDeleteProduct\n--- PASS: TestDeleteProduct (0.01s)\nPASS\nok      github.com/DLzer/go-product-api       0.071s\n```\n\n## Deployment\nThis application comes with dockerfiles prepped for deployment of the application, postres, and PGAdmin.\nWith docker installed and running - run the command:\n```bash\n$ docker-compose up --build\n```\nThis will fire up a new app with all three containers. After it's up an running just visit `http://localhost:8080` \nand you'll be greeted accordingly!\n\n\n## Version\n1.0.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlzer%2Fgo-mux-api-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdlzer%2Fgo-mux-api-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlzer%2Fgo-mux-api-boilerplate/lists"}