{"id":35493127,"url":"https://github.com/devcavin/spring-reactive-kotlin","last_synced_at":"2026-02-15T15:04:51.810Z","repository":{"id":261614847,"uuid":"883612970","full_name":"devcavin/spring-reactive-kotlin","owner":"devcavin","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-11T12:38:15.000Z","size":111,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-11T15:48:41.924Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","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/devcavin.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":"2024-11-05T09:22:04.000Z","updated_at":"2025-09-11T12:38:18.000Z","dependencies_parsed_at":"2025-09-17T10:06:44.944Z","dependency_job_id":null,"html_url":"https://github.com/devcavin/spring-reactive-kotlin","commit_stats":null,"previous_names":["killercavin/rustlings-solution","killercavin/spring-reactive-kotlin","devcavin/spring-reactive-kotlin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devcavin/spring-reactive-kotlin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devcavin%2Fspring-reactive-kotlin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devcavin%2Fspring-reactive-kotlin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devcavin%2Fspring-reactive-kotlin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devcavin%2Fspring-reactive-kotlin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devcavin","download_url":"https://codeload.github.com/devcavin/spring-reactive-kotlin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devcavin%2Fspring-reactive-kotlin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29481925,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T11:35:25.641Z","status":"ssl_error","status_checked_at":"2026-02-15T11:34:57.128Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-03T16:40:24.522Z","updated_at":"2026-02-15T15:04:51.805Z","avatar_url":"https://github.com/devcavin.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Reactive Kotlin Example\n\nA simple **Spring Boot 3** project using **Kotlin**, **WebFlux (coroutines)**, and **H2 (R2DBC)**.  \nIt demonstrates a clean, Kotlin-idiomatic way to build a reactive CRUD REST API.  \n\n---\n\n## Features\n- Reactive web layer with **Spring WebFlux**  \n- **Kotlin coroutines** instead of `Flux`/`Mono`  \n- **H2 (R2DBC)** in-memory database (no setup required)  \n- Simple **CRUD** endpoints for `User`  \n- Clean separation of DTOs, entities, repository, service, controller  \n\n---\n\n## Project Structure\n```\nspring-reactive-kotlin/\n ├── build.gradle.kts               # Gradle build (Kotlin DSL)\n ├── src/main/resources/\n │    └── application.properties           # Config (H2, R2DBC)\n │    └── schema.sql                # Creates users table\n ├── src/main/kotlin/com/example/demo/\n │    ├── Application.kt            # Main entry\n │    ├── User.kt             # Entity\n │    ├── CreateUserRequest.kt  # Request DTO and Response\n │    ├── UserRepository.kt\n │    ├── UserService.kt\n │    └── UserController.kt\n```\n\n---\n\n## Requirements\n- JDK 17+\n- Gradle (wrapper included)\n\n---\n\n## Run the App\n```bash\n./gradlew bootRun\n```\n\nThe app will start at **http://localhost:8080**.  \n\n---\n\n## API Endpoints\n\n### Create User\n```http\nPOST /users\nContent-Type: application/json\n\n{\n  \"name\": \"Alice\",\n  \"email\": \"alice@example.com\"\n}\n```\n\n### Get All Users\n```http\nGET /users\n```\n\n### Get User by ID\n```http\nGET /users/{id}\n```\n\n### Delete User\n```http\nDELETE /users/{id}\n```\n\n---\n\n## Database\nWe use **H2 (in-memory)** with **R2DBC**.  \nSchema is auto-created from [`schema.sql`](src/main/resources/schema.sql):  \n\n```sql\nCREATE TABLE USERS (\n    id BIGINT AUTO_INCREMENT PRIMARY KEY,\n    name VARCHAR(100),\n    email VARCHAR(150)\n);\n```\n\nThe DB is wiped each time the app restarts (great for testing/learning).  \n\n---\n\n## Next Steps\n- Add **update endpoint**  \n- Add **tests** with `WebTestClient`  \n- Explore **error handling** with `@ControllerAdvice`  \n- Switch to a production DB (e.g., PostgreSQL R2DBC)  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevcavin%2Fspring-reactive-kotlin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevcavin%2Fspring-reactive-kotlin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevcavin%2Fspring-reactive-kotlin/lists"}