Skip to content

mobintmu/golang_crud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

golang_CRUD

golang simple project

Run server

go run cmd/main.go

test health

curl http://localhost:3000/api/health
curl -X POST http://localhost:3000/api/users      -H "Content-Type: application/json"      -d '{"id":"1","username":"john","email":"john@example.com"}'

test docker file

curl http://localhost:8080/api/health
curl -X POST http://localhost:8080/api/users      -H "Content-Type: application/json"      -d '{"id":"1","username":"john","email":"john@example.com"}'

build docker

docker build -t golang-crud .

docker compose

docker compose up

Install Docker Compose on Ubuntu

https://phoenixnap.com/kb/install-docker-compose-on-ubuntu

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors