{"id":20755450,"url":"https://github.com/hrz8/go-pos-mini","last_synced_at":"2026-04-28T04:02:05.299Z","repository":{"id":136511666,"uuid":"422485218","full_name":"hrz8/go-pos-mini","owner":"hrz8","description":null,"archived":false,"fork":false,"pushed_at":"2021-10-30T07:15:47.000Z","size":517,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-18T04:26:59.636Z","etag":null,"topics":["crud-application","domain-driven-design","echo-framework","golang","mysql","rest-api"],"latest_commit_sha":null,"homepage":"https://documenter.getpostman.com/view/6786432/UV5f9EWr","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/hrz8.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-10-29T07:43:18.000Z","updated_at":"2024-03-09T17:58:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"25fb014d-dbb3-48d1-a320-81d80effda82","html_url":"https://github.com/hrz8/go-pos-mini","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrz8%2Fgo-pos-mini","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrz8%2Fgo-pos-mini/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrz8%2Fgo-pos-mini/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrz8%2Fgo-pos-mini/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hrz8","download_url":"https://codeload.github.com/hrz8/go-pos-mini/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243061265,"owners_count":20229957,"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":["crud-application","domain-driven-design","echo-framework","golang","mysql","rest-api"],"created_at":"2024-11-17T09:25:40.815Z","updated_at":"2025-12-26T04:05:33.829Z","avatar_url":"https://github.com/hrz8.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-pos-mini\n\n## api documentation 📖\nPostman: https://documenter.getpostman.com/view/6786432/UV5f9EWr\n\n## stacks 🥞\n- MySQL\n- Golang\n- Echo Framework\n- GORM\n\n## setup up ☕️\n\n### clone 💾\nClone this repo using `Download` button or bash 👨‍💻\n\n```bash\n$ git clone https://github.com/hrz8/go-pos-mini.git\n```\n\n### environtment setup 🛠\n\nRequired to create `config.yml` file for the development purpose, can refer the `config.sample.yml` file.\n\n`config.yml` file should be look like this:\n\n```yml\nSERVICE:\n  RESTPORT: 3000\n  JWTSECRET: yoursecret\n  ADMINPASSWORD: password123\nDATABASE: \n  HOST: localhost\n  PORT: 3306\n  USER: root\n  PASSWORD: toor\n  NAME: pos_mini\n```\n\nDetails:\n| Config                | Details                                                                                   |\n|-----------------------|-------------------------------------------------------------------------------------------|\n| SERVICE.RESTPORT      | This will be a rest server port                                                           |\n| SERVICE.JWTSECRET     | A secret for JWT token that apps will generate from                                       |\n| SERVICE.ADMINPASSWORD | This will be default password for dummy user (will be use to do a login to request token) |\n| DATABASE.HOST         | The used database host/address                                                            |\n| DATABASE.PORT         | Port of database                                                                          |\n| DATABASE.USER         | Username for database access credentials                                                  |\n| DATABASE.PASSWORD     | Password for database access credentials                                                  |\n| DATABASE.NAME         | Database name that will be use to store the data                                          |\n\n### database schema (erd) 📊\n\n![db diagram](db_diagram.png \"DB Diagram\")\n\n### activity diagram ⛳️\n\nLogin:\n\n![login activity diagram](activity_diagram1.png \"Activity Diagram For Login\")\n\nCRUD:\n\n![crud activity diagram](activity_diagram0.png \"Activity Diagram For CRUD\")\n\n### usecase diagram 🔶\n\n![usecase diagram](usecase_diagram.png \"Usecse Diagram\")\n\n### data manipulation language used 🧮\n\n| Command | Details                                                                   |\n|---------|---------------------------------------------------------------------------|\n| UPDATE  | To update the record based on user or product id                          |\n| INSERT  | To add new record                                                         |\n| WHERE   | Especially in UPDATE, it used to determine which record need to be update |\n\n## run 🏃‍♂️\n\n### cli 💻\n\n```bash\n$ go run main.go\n```\n\nOnce this command executed, the migration will run automatically.\n\n### vscode debug 🕵️‍♂️\n\nDebug app using VsCode Debugger Tool\n\n- Select your debugger to be set as `Launch to The Moon 🚀🌕`\n- Press `F5` to run the debugging\n- Done!\n\nOnce this executed, the migration will run automatically.\n\n## author ℹ️\n\nHirzi Nurfakhrian","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrz8%2Fgo-pos-mini","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhrz8%2Fgo-pos-mini","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrz8%2Fgo-pos-mini/lists"}