goserve is a robust Go backend framework that provides a performant and scalable foundation for building REST APIs. It emphasizes feature separation, clean code, and testability with built-in JWT authentication and role-based authorization.
Complete guides, examples, and API references for building production-ready Go applications.
- Feature Separation - Clean architecture with modular design
- High Performance - Built on Go, Gin, and optimized database drivers
- Testability - Simplified unit and integration testing
- Security First - JWT authentication, middleware support, and secure patterns
- Database Support - PostgreSQL (pgx) and MongoDB integrations
- Redis Integration - Built-in caching support
- Production Ready - Validator, Viper config, and crypto utilities
- Example Projects - Complete implementations to get started quickly
Complete REST API with PostgreSQL, Redis, JWT authentication, role-based authorization, and comprehensive testing.
Repository: goserve-example-api-server-postgres
Complete REST API with MongoDB, Redis, and JWT authentication.
Repository: goserve-example-api-server-mongo
Microservices architecture with Kong API gateway, NATS messaging, and Docker orchestration.
Repository: gomicro
- Go 1.21+ - Modern, efficient programming language
- Gin - Fast HTTP web framework
- JWT (RS256) - Secure RSA-signed token-based authentication
- pgx - PostgreSQL driver with connection pooling
- MongoDB Driver - Official Go driver for MongoDB
- go-redis - Redis client for caching and sessions
- Validator - Request validation utilities
- Viper - Configuration management
- Docker & Docker Compose - Containerization and orchestration
Found an issue or want to improve the documentation?
- Fork this repository
- Create your feature branch (
git checkout -b improve-docs) - Commit your changes (
git commit -m 'Improve documentation') - Push to the branch (
git push origin improve-docs) - Open a Pull Request
- Documentation: goserve.afteracademy.com
- Framework Repository: github.com/afteracademy/goserve
- Project Generator: github.com/afteracademy/goservegen
- YouTube Channel: @afteracad
- Article: How to Architect Good Go Backend REST API Services
Apache 2.0 - See LICENSE for details
Built with ❤️ by AfterAcademy
⭐ Star the goserve framework if you find it helpful!
