Commit Graph

11 Commits

Author SHA1 Message Date
Björn Benouarets
769c223700 feat: add Docker configuration and deployment files
- 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
2025-09-25 23:24:52 +02:00
Björn Benouarets
a029281e28 feat: add API documentation and Swagger config
- 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
2025-09-25 23:24:47 +02:00
Björn Benouarets
1e11664ec3 feat: add main application entry point
- 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
2025-09-25 23:24:42 +02:00
Björn Benouarets
b4a0a6b611 feat: add API routes and endpoints
- 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
2025-09-25 23:24:37 +02:00
Björn Benouarets
e76469ad55 feat: add business logic controllers
- 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
2025-09-25 23:24:32 +02:00
Björn Benouarets
6f4e929959 feat: add data access layer (repositories)
- 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
2025-09-25 23:24:28 +02:00
Björn Benouarets
4ee00d0b97 feat: add authentication and database middleware
- 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
2025-09-25 23:24:23 +02:00
Björn Benouarets
f509f6e524 feat: add utility functions and helpers
- 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
2025-09-25 23:24:18 +02:00
Björn Benouarets
9a8a93061d feat: add database connection and configuration
- 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
2025-09-25 23:24:13 +02:00
Björn Benouarets
a1dea963e9 feat: add data models and API structures
- 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
2025-09-25 23:24:06 +02:00
Björn Benouarets
d0dc7a2837 feat: initialize Go module with dependencies
- 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
2025-09-25 23:23:58 +02:00