
About The Project
This repository is a production-oriented starter for backend services in Go. It ships with:
- HTTP server bootstrapped with Fiber and dependency injection via Uber Fx.
- Version + health endpoints using
healthfx.
- Swagger/OpenAPI docs endpoint under
/api/v1/docs.
- Telegram bot integration (
/start command handler included).
- Modular business domain example to plug in real use-cases.
Use this template when you want a fast path to shipping APIs and bot workflows with a clean module layout.
(back to top)
Built With
(back to top)
Getting Started
Follow these steps to run the service locally.
Prerequisites
Installation
- Clone the repo.
git clone https://github.com/capcom6/go-project-template.git
cd go-project-template
- Download dependencies.
make deps
- (Optional) Generate OpenAPI docs.
make gen
- Build the binary.
make build
(back to top)
Usage
Run the app:
go run .
Or use live reload:
make air
Default server address is 127.0.0.1:3000.
Helpful endpoints:
- Health endpoints (via
healthfx), typically under /health.
- OpenAPI docs:
http://127.0.0.1:3000/api/v1/docs.
Configuration:
Quality checks:
make fmt
make lint
make test
make coverage
(back to top)
Roadmap
- Fiber API scaffold
- OpenAPI + Swagger integration
- Telegram bot wiring
- Database module integration
- Auth middleware and RBAC
- CI release pipeline hardening
See the open issues for a full list of proposed features (and known issues).
(back to top)
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also open an issue with the tag "enhancement".
Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature)
- Commit your Changes (
git commit -m 'Add some AmazingFeature')
- Push to the Branch (
git push origin feature/AmazingFeature)
- Open a Pull Request
(back to top)
License
Distributed under the Apache 2.0 License. See LICENSE for more information.
(back to top)
Maintainer: @capcom6
Project Link: https://github.com/capcom6/go-project-template
(back to top)
Acknowledgments
(back to top)