Project generator for go backend architecture using goserve framework
github.com/afteracademy/goserve
Install go language in your system if not already installed. Download Go
Postgres Project
go run github.com/afteracademy/goservegen/v2@latest ~/Downloads/my_project github.com/yourusername/example postgresMongo Project
go run github.com/afteracademy/goservegen/v2@latest ~/Downloads/my_project github.com/yourusername/example mongoNote: It will generate project named
my_projectlocated at~/Downloadsand modulegithub.com/yourusername/example
# Go to the project directory
cd ~/Downloads/my_project docker compose up --build# Run on terminal
curl http://localhost:8080/healthResponse
{
"code": "10000",
"status": 200,
"message": "success",
"data": {
"timestamp": "2026-01-25T06:45:17.228713387Z",
"status": "OK"
}
}Have fun developing your REST API server!
.
├── Dockerfile
├── api
│ ├── health
│ │ ├── controller.go
│ │ ├── dto
│ │ │ └── health_check.go
│ │ └── service.go
│ └── message
│ ├── controller.go
│ ├── dto
│ │ └── create_message.go
│ ├── model
│ │ └── message.go
│ └── service.go
├── cmd
│ └── main.go
├── config
│ └── env.go
├── docker-compose.yml
├── go.mod
├── go.sum
├── keys
│ ├── private.pem
│ └── public.pem
├── migrations
├── startup
│ ├── module.go
│ ├── server.go
│ └── testserver.go
└── utils
├── convertor.go
└── file.go
You can read about using this framework here github.com/afteracademy/goserve