{"id":26544067,"url":"https://github.com/lucasvmiguel/go-api-test","last_synced_at":"2026-04-15T06:34:52.846Z","repository":{"id":46657747,"uuid":"411834384","full_name":"lucasvmiguel/go-api-test","owner":"lucasvmiguel","description":"REST API in Golang to practice","archived":false,"fork":false,"pushed_at":"2021-10-01T12:08:17.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-22T03:17:10.237Z","etag":null,"topics":["chi","golang","prisma","rest-api"],"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/lucasvmiguel.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}},"created_at":"2021-09-29T21:27:41.000Z","updated_at":"2021-10-01T12:09:31.000Z","dependencies_parsed_at":"2022-07-20T07:02:04.663Z","dependency_job_id":null,"html_url":"https://github.com/lucasvmiguel/go-api-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lucasvmiguel/go-api-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasvmiguel%2Fgo-api-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasvmiguel%2Fgo-api-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasvmiguel%2Fgo-api-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasvmiguel%2Fgo-api-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucasvmiguel","download_url":"https://codeload.github.com/lucasvmiguel/go-api-test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasvmiguel%2Fgo-api-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31830149,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"online","status_checked_at":"2026-04-15T02:00:06.175Z","response_time":63,"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":["chi","golang","prisma","rest-api"],"created_at":"2025-03-22T03:17:14.183Z","updated_at":"2026-04-15T06:34:52.805Z","avatar_url":"https://github.com/lucasvmiguel.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-api-test\n\nREST API in Golang to practice.\n\n## Install\n\n```\ngit clone git@github.com:lucasvmiguel/go-api-test.git\n```\n\n*You must have Golang installed and configured to work with this API.*\n\n## Getting Started\n\nFirst, generate the database schema and Golang ORM code:\n```\nmake db-migrate\nmake db-generate\n```\n\nThen, run the development server:\n\n```bash\nmake run-api\n```\n\n## Stack\n\n* Language: `Golang`\n* API/REST framework: `chi`\n* Database ORM: `Prisma`\n* Config reader: `godotenv`\n\n\n## Testing\n\n### How to run unit\n```\nmake test-unit\n```\n\n## Configuration\n\nAll config are passed using environment variables, see all them below:\nEnv Var | Default value |\n--- | --- |\n`PORT` | 8080 |\n\n## Folder/File struct\n\n* `/db`: All ORM entities are auto generated using prisma.\n* `/cmd`: Main applications for this project.\n* `/internal`: Private application and library code.\n* `/pkg`: Library code that's ok to use by external applications.\n* `/.github`: CI/CD from Github.\n* `schema.prisma`: Database schema.\n* `dev.db`: Database used for development.\n* `Makefile`: Project's executable tasks.\n\n*Reference: https://github.com/golang-standards/project-layout*\n\n## CI/CD\n\nCheck the Github actions for this repository, but in a nutshell:\n1. Set up Go\n2. Build\n3. Test\n4. Log in to the Container registry (Github)\n5. Build and push Docker images","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasvmiguel%2Fgo-api-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucasvmiguel%2Fgo-api-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasvmiguel%2Fgo-api-test/lists"}