From 057a690cb1f4a35ead7b89dde45e91d69589e909 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90=E1=BA=B7ng=20Ph=C6=B0=E1=BB=9Bc=20Quang?= Date: Sun, 20 Aug 2023 13:52:25 +0700 Subject: [PATCH] update README.md --- README.md | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 2c0a180..6d9197a 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ redis_db: 0 ### Run ```shell script -$ go run main.go +$ go run cmd/api/main.go ``` ### Test @@ -47,21 +47,23 @@ go test -timeout 9000s -a -v -coverpkg=./... ./test Project information and existing API ``` +[GIN-debug] POST /api/v1/auth/register --> goshop/internal/user/port/http.(*UserHandler).Register-fm (3 handlers) +[GIN-debug] POST /api/v1/auth/login --> goshop/internal/user/port/http.(*UserHandler).Login-fm (3 handlers) +[GIN-debug] POST /api/v1/auth/refresh --> goshop/internal/user/port/http.(*UserHandler).RefreshToken-fm (4 handlers) +[GIN-debug] GET /api/v1/auth/me --> goshop/internal/user/port/http.(*UserHandler).GetMe-fm (4 handlers) +[GIN-debug] PUT /api/v1/auth/change-password --> goshop/internal/user/port/http.(*UserHandler).ChangePassword-fm (4 handlers) +[GIN-debug] GET /api/v1/products --> goshop/internal/product/port/http.(*ProductHandler).ListProducts-fm (3 handlers) +[GIN-debug] POST /api/v1/products --> goshop/internal/product/port/http.(*ProductHandler).CreateProduct-fm (4 handlers) +[GIN-debug] PUT /api/v1/products/:id --> goshop/internal/product/port/http.(*ProductHandler).UpdateProduct-fm (4 handlers) +[GIN-debug] GET /api/v1/products/:id --> goshop/internal/product/port/http.(*ProductHandler).GetProductByID-fm (3 handlers) +[GIN-debug] POST /api/v1/orders --> goshop/internal/order/port/http.(*OrderHandler).PlaceOrder-fm (4 handlers) +[GIN-debug] GET /api/v1/orders/:id --> goshop/internal/order/port/http.(*OrderHandler).GetOrderByID-fm (4 handlers) +[GIN-debug] GET /api/v1/orders --> goshop/internal/order/port/http.(*OrderHandler).GetOrders-fm (4 handlers) +[GIN-debug] PUT /api/v1/orders/:id/cancel --> goshop/internal/order/port/http.(*OrderHandler).CancelOrder-fm (4 handlers) [GIN-debug] GET /swagger/*any --> github.com/swaggo/gin-swagger.CustomWrapHandler.func1 (3 handlers) -[GIN-debug] POST /auth/register --> goshop/app/api.(*UserAPI).Register-fm (3 handlers) -[GIN-debug] POST /auth/login --> goshop/app/api.(*UserAPI).Login-fm (3 handlers) -[GIN-debug] POST /auth/refresh --> goshop/app/api.(*UserAPI).RefreshToken-fm (4 handlers) -[GIN-debug] GET /auth/me --> goshop/app/api.(*UserAPI).GetMe-fm (4 handlers) -[GIN-debug] PUT /auth/change-password --> goshop/app/api.(*UserAPI).ChangePassword-fm (4 handlers) -[GIN-debug] GET /api/v1/products --> goshop/app/api.(*ProductAPI).ListProducts-fm (3 handlers) -[GIN-debug] POST /api/v1/products --> goshop/app/api.(*ProductAPI).CreateProduct-fm (4 handlers) -[GIN-debug] PUT /api/v1/products/:id --> goshop/app/api.(*ProductAPI).UpdateProduct-fm (4 handlers) -[GIN-debug] GET /api/v1/products/:id --> goshop/app/api.(*ProductAPI).GetProductByID-fm (3 handlers) -[GIN-debug] POST /api/v1/orders --> goshop/app/api.(*OrderAPI).PlaceOrder-fm (4 handlers) -[GIN-debug] GET /api/v1/orders/:id --> goshop/app/api.(*OrderAPI).GetOrderByID-fm (4 handlers) -[GIN-debug] GET /api/v1/orders --> goshop/app/api.(*OrderAPI).GetOrders-fm (4 handlers) -[GIN-debug] PUT /api/v1/orders/:id/cancel --> goshop/app/api.(*OrderAPI).CancelOrder-fm (4 handlers) -2023-06-11T13:31:47.587+0700 INFO goshop/main.go:34 Listen at: 8888 +[GIN-debug] GET /health --> goshop/internal/server/http.Server.Run.func1 (3 handlers) +2023-08-20T13:50:57.175+0700 INFO http/server.go:53 Server is listening on PORT: 8888 +[GIN-debug] Listening and serving HTTP on :8888 ``` ### Document @@ -69,10 +71,10 @@ Project information and existing API ### Tech stack - Restful API +- DDD - Gorm - Swagger - Logging - Jwt-Go - Gin-gonic - Redis -- Dig (Dependency Injection) \ No newline at end of file