Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tgrziminiar/hugeman-test-back
https://github.com/tgrziminiar/hugeman-test-back
Last synced: about 12 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/tgrziminiar/hugeman-test-back
- Owner: TGRZiminiar
- Created: 2023-11-07T03:38:13.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-11T13:44:31.000Z (12 months ago)
- Last Synced: 2024-04-18T09:28:44.422Z (7 months ago)
- Language: Go
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## Sample Response ใน Postman ผมไม่ได้เอาข้อมูลรูปภาพ base64 เข้ามาด้วยนะครับพอไม่งั้นเดียวไฟล์ postman มันจะเยอะเกินไป
## ถ้า Test โดยใช้ local ไม่ใช้ kube ใน postman ให้ Test ด้วย Port 5000
## ถ้า Test โดยใช้ kube ให้ใช้ postman Port 80## Start Server Need In Local No Kube
### 1. Start Docker Environment
```
docker compose -f docker-compose.db.yml up -d
```### 2. Select Environment File To Start Golang
go run main.go ./env/dev/.env.dev#### Command To Migrate
```
go run ./pkg/database/script/migration.go ./env/dev/.env.dev
```#### Command To Build Dockerfile
```
docker build -f ./build/Dockerfile -t test-hugeman-go:latest .
docker image tag test-hugeman-go:latest tgrziminiar/test-hugeman-go:v.0.1
```## Command To Handle Kubectl For Testing In Local Only
```
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.8.2/deploy/static/provider/cloud/deploy.yamlkubectl create configmap app-env --from-file=./env/prod/.env
kubectl apply -f ./build/mongo
kubectl apply -f ./build/service.yml
kubectl apply -f ./build/ingress.yml
kubectl apply -f ./build/deployment.yml
```# Api -> Get All Todo (Maybe Pagination) : No Params Required
# Api -> Get Single Todo (For Update) : Need Todo Id Params# Api -> Sorting Todo : Need Text Query
# Api -> Searching Todo : Need Text Query# Api -> Create Todo : Need Req Body
# Api -> Update Todo : Need Req Body# APi -> Delete Todo : Need Todo Id Params