
Boilerplate for the Echo framework with authentication, authorization and request/response validation.
The echo-boilerplate is an efficient Go application starter that leverages the lightweight echo framework, ideal for developers looking for a minimal yet powerful solution. With built-in authentication and authorization features, it serves as an excellent foundation for personal projects that require secure communication and data validation. This boilerplate is designed for quick setup and efficient development, making it perfect for those familiar with Go version 1.22+.
As a developer, you'll appreciate the seamless integration of key tools like JWT for authentication, Casbin for role-based access control, and OpenAPI for easy request and response validation. This setup is not only flexible but also allows for modification without any significant hassle, providing a robust structure to jump-start your projects.
JWT Authentication: Utilizes JSON Web Tokens for secure access and refresh token management. Tokens can be sent through the Authorization header or as cookies.
Casbin Authorization: Incorporates Casbin for role-based access control, ensuring users have the appropriate permissions for various operations.
OpenAPI Validation: Implements OpenAPI for robust request and response validation, enhancing API safety and reliability.
Superuser Creation: Simple command-line interface to create a superuser with customizable settings such as email, name, and username.
Environment Setup: Easy requirements setup including MongoDB and optional tools for formatting and linting code.
Token Expiry Management: Offers configurability for access and refresh token expiry times, allowing tailored authentication flows.
Local Development Support: Includes comprehensive local build and run instructions, making it user-friendly for developers of all levels.
Documentation Access: Provides easy access to OpenAPI documentation right from the local server for quick reference during development.
