百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
G

go-pos

> 数据库
开源

一个简单的 RESTful 销售点 (POS) 服务 API,使用 Gin Web 框架、PostgreSQL 数据库和 Redis 缓存编写而成,证明了实现 Hex 的可行性。

350 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

一个简单的 RESTful 销售点 (POS) 服务 API,使用 Gin Web 框架、PostgreSQL 数据库和 Redis 缓存编写而成,证明了实现 Hex 的可行性。

Go POS

Description

A simple RESTful Point of Sale (POS) web service written in Go programming language. This project is a part of my learning process in understanding Hexagonal Architecture in Go.

It uses Gin as the HTTP framework and PostgreSQL as the database with pgx as the driver and Squirrel as the query builder. It also utilizes Redis as the caching layer with go-redis as the client.

This project idea was inspired by the Ide Project untuk Upgrade Portfolio Backend Engineer video on YouTube by Asdita Prasetya, which provided valuable guidance and inspiration for its development.

Getting Started

  1. If you do not use devcontainer, ensure you have Go 1.23 or higher and Task installed on your machine:

    bash
    go version && task --version
  2. Create a copy of the .env.example file and rename it to .env:

    bash
    cp .env.example .env

    Update configuration values as needed.

  3. Install all dependencies, run docker compose, create database schema, and run database migrations:

    bash
    task
  4. Run the project in development mode:

    bash
    task dev

Documentation

For database schema documentation, see here, powered by dbdocs.io.

API documentation can be found in docs/ directory. To view the documentation, open the browser and go to http://localhost:8080/docs/index.html. The documentation is generated using swaggo with gin-swagger middleware.

Contributing

Developers interested in contributing to Go POS project can refer to the CONTRIBUTING file for detailed guidelines and instructions on how to contribute.

License

Go POS project is licensed under the MIT License, providing an open and permissive licensing approach for further development and usage.

Learning References

  • Hexagonal Architecture by Alistair Cockburn
  • Ready for changes with Hexagonal Architecture by Netflix Technology Blog
  • Hexagonal Architecture in Go by Matias Varela

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Gogingogolanghexagonal-architecture

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类数据库
定价开源

> 相关工具

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库