{"id":19043995,"url":"https://github.com/muhhylmi/golang-api","last_synced_at":"2026-06-17T18:33:25.692Z","repository":{"id":170870625,"uuid":"636662219","full_name":"muhhylmi/golang-api","owner":"muhhylmi","description":"Membuat Rest API Dengan Framework Echo","archived":false,"fork":false,"pushed_at":"2024-02-20T05:30:23.000Z","size":144,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-01-02T08:13:56.028Z","etag":null,"topics":["echo-","golang-api","golang-gor","gorm","grpc-go","migrations","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/muhhylmi.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}},"created_at":"2023-05-05T11:04:00.000Z","updated_at":"2024-02-02T02:24:49.000Z","dependencies_parsed_at":"2024-01-08T03:29:08.983Z","dependency_job_id":"1ed2a4e6-3620-40a2-842d-520a99f71ee8","html_url":"https://github.com/muhhylmi/golang-api","commit_stats":null,"previous_names":["muhhylmi/golang-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhhylmi%2Fgolang-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhhylmi%2Fgolang-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhhylmi%2Fgolang-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhhylmi%2Fgolang-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muhhylmi","download_url":"https://codeload.github.com/muhhylmi/golang-api/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240100560,"owners_count":19747689,"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":["echo-","golang-api","golang-gor","gorm","grpc-go","migrations","rest-api"],"created_at":"2024-11-08T22:44:15.472Z","updated_at":"2025-11-11T18:01:55.001Z","avatar_url":"https://github.com/muhhylmi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Golang Restfull API\n\nHello, this is Golang Restfull API using echo go framework, this repository using postgres as databases. and use [golang-migrate](https://github.com/golang-migrate/migrate/tree/master/database/postgres) for database migration mechanisme\n\n### Some of the ones implemented in this repository:\n1. Restfull API\n2. Google Sheet Integration\n3. GRPC\n4. Unit Test\n\n\n### GRPC Workflow\n1. case creating book\n\n```mermaid\nsequenceDiagram\n    User-\u003e\u003eAPI: hit API create book\n    API-\u003e\u003eGRPC client: API request using grpc client\n    GRPC client-\u003e\u003eGRPC server: send data book\n    GRPC server-\u003e\u003eBE: request create book\n    BE--\u003e\u003eGRPC server: response create book\n    GRPC server--\u003e\u003eGRPC client:response succes/failed\n    GRPC client--\u003e\u003eAPI:response success/failed\n    API--\u003e\u003eUser:response message\n```\n\n\n\n### how to run app (makefile run on windows command)\n1. `install make to run Makefile command` \n2. `create database`\n3. install **golang-migrate** using go install -tags 'database1,database2' github.com/golang-migrate/migrate/v4/cmd/migrate@latest for example `go install -tags 'postgres,mysql' github.com/golang-migrate/migrate/v4/cmd/migrate@latest` \n4. `run the migration` use `make migrationup`\n5. you can run with **How to Run APP** \n\n### How to RUN APP\n1. make tidy\n2. make run\n\n\n### Database Migration Mechanisme\n1. use `make migration NAME=your_command` to create migration file\n2. fill the migration file based on you requirements\n3. use `make migrationup` to up your migration\n4. use `make migrationdown` to rollback all your migration\n5. use `make migrationversion` to check your migration version\n6. use `make migrationchange` to force change your migration version\n\n### How to create Mock\n1. install `mockery`\n2. just run this command `mockery --all --recursive=true --keeptree` or `make mock`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuhhylmi%2Fgolang-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuhhylmi%2Fgolang-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuhhylmi%2Fgolang-api/lists"}