๐Ÿš€ Building QuickClinic โ€“ A Scalable Java Microservices-Based Healthcare Platform

Github
X
Hey devs ๐Ÿ‘‹
Iโ€™m currently working on a full-stack microservices project called QuickClinic โ€“ a modern, scalable healthcare booking platform built with Java + Spring Boot + React, using JWT, Kafka, Eureka, and Docker under the hood.

Hereโ€™s a qu…


This content originally appeared on DEV Community and was authored by Debugger Sensei

Github
X
Hey devs ๐Ÿ‘‹
Iโ€™m currently working on a full-stack microservices project called QuickClinic โ€“ a modern, scalable healthcare booking platform built with Java + Spring Boot + React, using JWT, Kafka, Eureka, and Docker under the hood.

Hereโ€™s a quick dev log of what Iโ€™ve built so far and some of the real issues I faced and solved ๐Ÿ’ฅ

โœ… Core Features Implemented So Far
๐Ÿ” OAuth2 + JWT Authentication (login/signup via gateway + token-based access)

๐Ÿง‘โ€โš•๏ธ User Role System: Patients, Doctors, Admins (with secured routes)

๐Ÿฅ Microservices Setup:

UserAuth Service (authentication + profile)

Gateway API (JWT verification + routing)

Service Registry (Spring Eureka)

๐Ÿ“‹ User Dashboard (React + Tailwind UI, animated hospital-themed design)

โœ๏ธ User Operations: View, Update, Delete profile using secure endpoints

๐Ÿ” Booking System (in progress) for appointments

๐Ÿ” Spring Security Configuration using BCrypt + stateless sessions

โš™๏ธ Client-side JWT Handling: Stored token, auto-injected in requests

๐Ÿชฒ Bugs I Faced & Solved

  1. โŒ 403 Forbidden on Login (Even Though Token Was Correct) Root Cause: DelegatingPasswordEncoder expects an encoded password with a prefix like {bcrypt}.

Fix: Added the prefix and properly encoded the stored password using PasswordEncoderFactories.

  1. โš ๏ธ JWT Not Working via Gateway Issue: Gateway was rejecting JWT even though individual microservices accepted it.

Solved by: Correctly forwarding Authorization headers and applying token filter at Gateway level.

  1. ๐Ÿšซ React Fetch Error on /get-details Reason: Missing token in localStorage or token expiration.

Fix: Added secure token storage and toast-based error handling for 401 errors.

  1. ๐Ÿ”„ updateUserDetails Response Was Too Heavy Changed the API to return only a success message instead of full user object to reduce payload.

๐Ÿ’ก Lessons Learned
Stateless authentication can be tricky with Spring Security, especially across services.

Encoders matter! Prefixes like {bcrypt} arenโ€™t optional.

JWT debugging needs both backend and frontend coordination.

You donโ€™t need to return full objects after an update โ€” just a clear success message does the job!

๐Ÿ› ๏ธ Next Steps
Implement appointment booking module

Add Kafka messaging for logging, email, or async tasks

Dockerize each microservice and set up Docker Compose

Add admin panel, patient-doctor matching, and real-time notifications

๐Ÿ“ข Final Thoughts
Iโ€™m building this project not just to practice microservices, but to simulate a real production-grade system with all its complexity โ€” and Iโ€™m learning a ton on the way.

If you're into Spring Boot, microservices, and full-stack Java, letโ€™s connect! I'd love to hear your feedback or collaborate ๐Ÿš€


This content originally appeared on DEV Community and was authored by Debugger Sensei


Print Share Comment Cite Upload Translate Updates
APA

Debugger Sensei | Sciencx (2025-07-02T01:29:04+00:00) ๐Ÿš€ Building QuickClinic โ€“ A Scalable Java Microservices-Based Healthcare Platform. Retrieved from https://www.scien.cx/2025/07/02/%f0%9f%9a%80-building-quickclinic-a-scalable-java-microservices-based-healthcare-platform/

MLA
" » ๐Ÿš€ Building QuickClinic โ€“ A Scalable Java Microservices-Based Healthcare Platform." Debugger Sensei | Sciencx - Wednesday July 2, 2025, https://www.scien.cx/2025/07/02/%f0%9f%9a%80-building-quickclinic-a-scalable-java-microservices-based-healthcare-platform/
HARVARD
Debugger Sensei | Sciencx Wednesday July 2, 2025 » ๐Ÿš€ Building QuickClinic โ€“ A Scalable Java Microservices-Based Healthcare Platform., viewed ,<https://www.scien.cx/2025/07/02/%f0%9f%9a%80-building-quickclinic-a-scalable-java-microservices-based-healthcare-platform/>
VANCOUVER
Debugger Sensei | Sciencx - » ๐Ÿš€ Building QuickClinic โ€“ A Scalable Java Microservices-Based Healthcare Platform. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/07/02/%f0%9f%9a%80-building-quickclinic-a-scalable-java-microservices-based-healthcare-platform/
CHICAGO
" » ๐Ÿš€ Building QuickClinic โ€“ A Scalable Java Microservices-Based Healthcare Platform." Debugger Sensei | Sciencx - Accessed . https://www.scien.cx/2025/07/02/%f0%9f%9a%80-building-quickclinic-a-scalable-java-microservices-based-healthcare-platform/
IEEE
" » ๐Ÿš€ Building QuickClinic โ€“ A Scalable Java Microservices-Based Healthcare Platform." Debugger Sensei | Sciencx [Online]. Available: https://www.scien.cx/2025/07/02/%f0%9f%9a%80-building-quickclinic-a-scalable-java-microservices-based-healthcare-platform/. [Accessed: ]
rf:citation
» ๐Ÿš€ Building QuickClinic โ€“ A Scalable Java Microservices-Based Healthcare Platform | Debugger Sensei | Sciencx | https://www.scien.cx/2025/07/02/%f0%9f%9a%80-building-quickclinic-a-scalable-java-microservices-based-healthcare-platform/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.