A production-ready RESTful API built with Go and PostgreSQL, designed with a focus on scalability, security, and observable systems architecture. This project serves as a capstone demonstrating advanced backend engineering principles.
🚀 Live API Documentation: manas-solves.github.io/greenlight
- Language: Go 1.24+ (utilizing structured logging and workspace modules)
- Database: PostgreSQL 15 (with complex filtering, full-text search, and ACID compliance)
- Infrastructure: Docker & Docker-Compose for containerized local development
- CI/CD: GitHub Actions for automated testing and Codecov for quality assurance
- Advanced Concurrency: Implemented graceful shutdowns and background goroutines for non-blocking email delivery.
- Security-First Architecture: Custom middleware for rate limiting (token-bucket), CORS handling, and secure authentication using stateless tokens.
- Database Optimization: Built-in support for optimistic concurrency control (preventing race conditions during updates) and advanced PostgreSQL indexing.
- Automated Tooling: Managed via
Taskfileto automate migrations, builds, and integration testing.
- Clone the repo:
git clone https://github.com/manas-solves/greenlight.git - Start Infrastructure:
docker-compose up -d - Run Tests:
task test