- Add Dockerfile for containerizing the Go application
- Add docker-compose.yml for local development environment
- Include PostgreSQL database service configuration
- Configure networking and environment variables
- Set up proper port mapping and service dependencies
- Enable easy local development and deployment
- Add comprehensive Swagger/OpenAPI documentation
- Include all API endpoints with request/response schemas
- Add authentication and authorization documentation
- Include example requests and responses
- Configure Swagger UI integration for easy API testing
- Add main.go with Fiber web server setup
- Include database initialization and admin user setup
- Add middleware configuration (logging, request ID, health check)
- Add Swagger documentation integration
- Configure server to listen on port 8000
- Include proper error handling and graceful shutdown
- Add authentication routes for login, logout, and token refresh
- Add user management routes with proper authorization
- Add session management routes for session operations
- Add access control routes for API permissions
- Add test routes for development and debugging
- Include proper route grouping and middleware application
- Implement RESTful API design patterns
- Add authentication controller for login, logout, and token refresh
- Add user controller for user management and profile operations
- Add session controller for session management and validation
- Add access controller for API access control and permissions
- Include proper input validation and error handling
- Implement secure authentication flows
- Add user repository with CRUD operations and authentication methods
- Add session repository for session management and validation
- Add API key repository for API key management
- Include proper error handling and database transaction support
- Implement search and filtering capabilities
- Add JWT authentication middleware for protected routes
- Add database middleware for request-scoped database access
- Include proper error handling and response formatting
- Support for role-based access control
- Add JWT token generation and validation utilities
- Add password hashing with bcrypt for secure authentication
- Add pagination helper for API responses
- Add random string generation for tokens and IDs
- Add session management utilities
- Add admin user initialization functionality
- Add PostgreSQL database connection setup with GORM
- Include database initialization and migration functionality
- Add connection pooling and error handling
- Support for environment-based database configuration
- Add User model with authentication fields and validation
- Add Session model for managing user sessions
- Add API response structures for consistent API responses
- Include GORM tags for database mapping and validation
- Add go.mod with Fiber web framework, JWT, GORM, and PostgreSQL driver
- Include all necessary dependencies for IDP API development
- Set up module path as git.secnex.io/secnex/idp-api
- Add comprehensive .gitignore for Go projects