{"id":51482440,"url":"https://github.com/carturo8/eventhub","last_synced_at":"2026-07-07T03:00:49.691Z","repository":{"id":324039580,"uuid":"1093920246","full_name":"Carturo8/eventhub","owner":"Carturo8","description":"RESTful event and venue management API built with Spring Boot, JWT security, and Clean Architecture.","archived":false,"fork":false,"pushed_at":"2025-12-18T03:03:54.000Z","size":183,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-21T12:51:21.039Z","etag":null,"topics":["docker","flyway","hexagonal-architecture","java","jwt","openapi","rest-api","spring-boot","spring-security"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Carturo8.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-11T02:41:11.000Z","updated_at":"2025-12-18T03:05:19.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Carturo8/eventhub","commit_stats":null,"previous_names":["carturo8/eventhub"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Carturo8/eventhub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Carturo8%2Feventhub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Carturo8%2Feventhub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Carturo8%2Feventhub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Carturo8%2Feventhub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Carturo8","download_url":"https://codeload.github.com/Carturo8/eventhub/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Carturo8%2Feventhub/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35212581,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-07T02:00:07.222Z","response_time":90,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","flyway","hexagonal-architecture","java","jwt","openapi","rest-api","spring-boot","spring-security"],"created_at":"2026-07-07T03:00:45.383Z","updated_at":"2026-07-07T03:00:49.663Z","avatar_url":"https://github.com/Carturo8.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EventHub\n\nEventHub is a RESTful API for managing events and venues, built with Spring Boot and following Clean Architecture principles.\n\n## Features\n\n- **Event Management**: Create, read, update, and delete events with details like category, dates, and venue\n- **Venue Management**: Manage event venues with capacity and location information\n- **User Authentication**: JWT-based authentication with user registration and login\n- **Search \u0026 Filter**: Advanced search and filtering capabilities for events and venues\n- **Pagination**: Efficient pagination support for large datasets\n- **Security**: Role-based access control with Spring Security\n- **Observability**: Integrated monitoring with Prometheus and OpenTelemetry\n\n## Tech Stack\n\n- **Framework**: Spring Boot 3.5.7\n- **Language**: Java 21\n- **Database**: PostgreSQL\n- **Migration**: Flyway\n- **Security**: Spring Security with JWT\n- **Documentation**: OpenAPI/Swagger\n- **Containerization**: Docker \u0026 Docker Compose\n- **Monitoring**: Micrometer, Prometheus, OpenTelemetry\n- **Testing**: JUnit 5, Testcontainers\n\n## Architecture\n\nThe project follows **Hexagonal Architecture (Ports and Adapters)** with clear separation of concerns:\n\n- **Domain Layer**: Core business logic and entities\n- **Application Layer**: Use cases and queries\n- **Infrastructure Layer**: Adapters for web, database, and external services\n\n## Prerequisites\n\n- Java 21 or higher\n- Maven 3.9+\n- Docker and Docker Compose (for containerized deployment)\n- PostgreSQL 13+ (if running locally without Docker)\n\n## Getting Started\n\n### Clone the Repository\n\n```bash\ngit clone https://github.com/Carturo8/eventhub.git\ncd eventhub\n```\n\n### Configuration\n\nCreate an `application-local.yml` file based on the example:\n\n```bash\ncp src/main/resources/application-local-example.yml src/main/resources/application-local.yml\n```\n\nSet the required environment variables:\n\n```bash\nexport DB_URL=jdbc:postgresql://localhost:5432/eventhub\nexport DB_USERNAME=your_username\nexport DB_PASSWORD=your_password\nexport JWT_SECRET=your_secret_key\n```\n\n### Running with Docker Compose\n\nThe easiest way to run the application:\n\n```bash\ndocker-compose up --build\n```\n\nThe API will be available at `http://localhost:8080`\n\n### Running Locally\n\n1. Start PostgreSQL database\n2. Build the project:\n\n```bash\n./mvnw clean package\n```\n\n3. Run the application:\n\n```bash\n./mvnw spring-boot:run\n```\n\n## API Documentation\n\nOnce the application is running, access the Swagger UI at:\n\n```\nhttp://localhost:8080/swagger-ui.html\n```\n\n### Main Endpoints\n\n#### Authentication\n\n- `POST /auth/register` - Register a new user\n- `POST /auth/login` - Login and get JWT token\n\n#### Events\n\n- `GET /api/events` - List all events (with pagination and filters)\n- `GET /api/events/{id}` - Get event by ID\n- `POST /api/events` - Create a new event (requires authentication)\n- `PUT /api/events/{id}` - Update an event (requires authentication)\n- `DELETE /api/events/{id}` - Delete an event (requires authentication)\n\n#### Venues\n\n- `GET /api/venues` - List all venues (with pagination and filters)\n- `GET /api/venues/{id}` - Get venue by ID\n- `POST /api/venues` - Create a new venue (requires authentication)\n- `PUT /api/venues/{id}` - Update a venue (requires authentication)\n- `DELETE /api/venues/{id}` - Delete a venue (requires authentication)\n\n## Development\n\n### Running Tests\n\n```bash\n./mvnw test\n```\n\n### Building for Production\n\n```bash\n./mvnw clean package -DskipTests\n```\n\n## Monitoring\n\nThe application exposes actuator endpoints for monitoring:\n\n- Health: `http://localhost:8080/actuator/health`\n- Metrics: `http://localhost:8080/actuator/metrics`\n- Prometheus: `http://localhost:8080/actuator/prometheus`\n\n## Project Structure\n\n```\nsrc/main/java/com/carturo/eventhub/\n├── application/          # Application layer (use cases, queries)\n│   ├── query/           # Query handlers\n│   ├── usecase/         # Command handlers\n│   └── exception/       # Application exceptions\n├── domain/              # Domain layer\n│   ├── model/          # Domain entities\n│   └── ports/          # Interfaces (in/out)\n└── infrastructure/      # Infrastructure layer\n    ├── adapters/       # Web, database adapters\n    ├── config/         # Configuration\n    └── security/       # Security configuration\n```\n\n## License\n\nThis project is available for educational and personal use.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarturo8%2Feventhub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarturo8%2Feventhub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarturo8%2Feventhub/lists"}