Go Bootstrapper is a CLI tool that scaffolds production-ready Golang projects — no dependency headaches, no manual setup.
Just run a command and get a fully configured project with linters, routers, and structure ready to code.
Install globally using go install:
go install github.com/upsaurav12/bootstrap@latest
Once installed, confirm the installation:
bootstrap --help
Create a REST API project using Gin:
bootstrap new myapp --type=rest --router=gin --port=8080
Create a project with PostgreSQL integration:
bootstrap new myapp --type=rest --router=gin --db=postgres
myapp/
├── Makefile
├── README.md
├── cmd/
│ └── main.go
├── internal/
│ ├── config/
│ │ └── config.go
│ ├── handler/
│ │ └── user_handler.go
│ ├── router/
│ │ └── routes.go
│ └── db/ ← created only if --db flag is passed
│ └── db.go
└── go.mod
| Flag | Description | Example |
|---|---|---|
| --type | Type of project (rest, grpc, etc.) | --type=rest |
| --router | Router framework (gin, chi, echo) | --router=gin |
| --port | Application port | --port=8080 |
| --db | Database integration | --db=postgres |
Developers often waste time repeating setup tasks — creating folders, configuring routers, writing Makefiles, adding linters, etc.
Go Bootstrapper automates all that.
You focus on business logic — it handles the rest.
It’s like:
create-react-app, but for Golang �
- Add
--with-authflag for JWT + middleware setup addcommand to make CLI tool more extensible to generateservice,handlers,controllers.- Commands like
build,test,dev,fmtto make it more developer friendly, ensuring production ready code. initthat will be used for letting users to choose their configurations viaTUI.
Contributions, feedback, and ideas are welcome!
Feel free to open an issue or PR on GitHub.
Consider star the project 🙏
Licensed under the MIT License © 2025 Saurav Upadhyay