๐ Documentation Getting Started Framework Guide What is goserve? goserve is a robust Go backend architecture framework that offers a performant and scalable foundation for building REST APIs. It emphasizes:
Feature Separation : Clean, modular architecture that scales as your application growsClean Code : Well-organized structure following best practicesTestability : Simplified unit and integration testing patternsProduction Ready : Built-in utilities for validation, configuration, and securityTechnology Stack goserve is built with industry-standard Go libraries:
Go - Modern, efficient programming languageGin - Fast HTTP web frameworkJWT - Secure token-based authenticationpgx - PostgreSQL driver with connection poolinggo-redis - Redis client for caching and sessionsValidator - Request validation utilitiesCrypto - Cryptographic utilitiesExample Projects Learn by example with complete, production-ready implementations:
goserve-example-api-server-postgres - Complete REST API with PostgreSQL, Redis, and JWT authenticationgoserve-example-api-server-mongo - Complete REST API with MongoDB, Redis, and JWT authenticationgomicro - Microservices architecture with Kong API gateway, NATS messaging, and Docker orchestrationQuick Start Install goserve bash go get github.com/afteracademy/goserve 1
Try the PostgreSQL Example The best way to get started is with the complete example project:
bash git clone https://github.com/afteracademy/goserve-example-api-server-postgres.git
cd goserve-example-api-server-postgres
go run .tools/rsa/keygen.go && go run .tools/copy/envs.go
docker compose up --build -d
curl http://localhost:8080/health 1 2 3 4 5
See the PostgreSQL Example Documentation for detailed setup and usage.
Learn More Ready to dive deeper? Check out our comprehensive documentation:
Why Choose goserve? โ
Batteries Included : Everything you need for production REST APIs โ
Clean Architecture : Feature-based organization that scales โ
Easy Testing : Simplified patterns for unit and integration tests โ
Active Development : Regularly updated with latest Go best practices โ
Well Documented : Comprehensive examples and documentation โ
Open Source : Apache 2.0 licensed, free to use License goserve is released under the Apache 2.0 License . See the LICENSE file for details.
Contributing Contributions are welcome! Please feel free to fork the repository and open a pull request. See the Contributing Guide for more details.
Find this project useful? โญ Star it on GitHub to show your support!