{"id":22678041,"url":"https://github.com/vicradon/product-api-go","last_synced_at":"2025-03-29T12:46:43.736Z","repository":{"id":258963956,"uuid":"875994100","full_name":"vicradon/product-api-go","owner":"vicradon","description":"A products API written in Go with no frameworks for performing CRUD on products","archived":false,"fork":false,"pushed_at":"2024-10-23T03:56:46.000Z","size":218,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T13:44:30.536Z","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/vicradon.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":"2024-10-21T08:16:19.000Z","updated_at":"2024-10-23T03:56:49.000Z","dependencies_parsed_at":"2025-02-04T13:43:40.676Z","dependency_job_id":"432277f7-0092-4cb1-a287-a0d3af8bf27f","html_url":"https://github.com/vicradon/product-api-go","commit_stats":null,"previous_names":["vicradon/product-api-go"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicradon%2Fproduct-api-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicradon%2Fproduct-api-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicradon%2Fproduct-api-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicradon%2Fproduct-api-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vicradon","download_url":"https://codeload.github.com/vicradon/product-api-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246187220,"owners_count":20737460,"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-12-09T18:13:53.421Z","updated_at":"2025-03-29T12:46:43.715Z","avatar_url":"https://github.com/vicradon.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Product Management System APIs\n\nThis is a simple CRUD Go API that allows users to manage products in a store. It is powered by an SQLite database and Go Gin framework.\n\n## Prerequisites\n\nYou need Go 1.17 or higher to run this app\n\n## Set up\n\nSet this up by cloning this repo and creating an .env file. Do so with this command\n\n```\ncp .env.example .env\n```\n\n### Running the app\n\nYou can run the app by either building first and running as an executable or running directly. Here are both cases:\n\n1. Build and run\n\n```sh\ngo build -o productapi\n./productapi\n```\n\n2. Run directly\n\n```sh\ngo run main.go\n```\n\nIf you start the app with the defaults, it will run on port 2400 and set up a database in the root directory called `database.db`\n\n## Running unit tests\n\nYou can run the included unit tests for the APIs using the command below:\n\n```\ngo test -v ./...\n```\n\nExample test output\n\n```\n=== RUN   TestCreateProduct\n[GIN] 2024/10/22 - 22:27:19 | 201 |      310.25µs |                 | POST     \"/products\"\n--- PASS: TestCreateProduct (0.00s)\n```\n\n## API docs\n\nThe API is documented with swagger. You can test it out on the swagger browser interface: https://productapi.osinachi.me/swagger/index.html\n\n![Swagger Screenshot](./docs/swagger-screenshot.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvicradon%2Fproduct-api-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvicradon%2Fproduct-api-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvicradon%2Fproduct-api-go/lists"}