Continuing the development of my digital menu system for restaurants, today I focused entirely on the backend technical foundation.
I implemented the full authentication flow, including:
β’ User registration
β’ Login
β’ JWT-based authentication
Additionally, I deployed the database in a Docker container, already integrated with the application and running correctly.
To ensure a more robust backend, I also implemented:
β’ Custom exceptions (e.g., LoginException)
β’ Global exception handler, centralizing and standardizing API error responses
This way, errors are returned clearly and consistently, making it easier for the frontend to consume and for the system to be maintained.
I tested all endpoints using Insomnia:
β’ The login endpoint correctly returns the userβs name and the JWT token
β’ The authentication flow and error handling are working as expected
π οΈ Stack involved in this progress:
β’ Java + Spring Boot
β’ PostgreSQL
β’ Docker
β’ JWT
β’ Global exception handling
β’ API testing with Insomnia
π I will continue documenting every stage of the project, always focusing on best practices and continuous learning.

Top comments (0)