ztonaz

*Last 24 hours - Euro currency

Monday, April 14, 2025

Starting over. New Project. Base Project



I need to create a project that will serve as the foundation for future Spring Boot applications. It should be well-structured, clearly documented, and presentable as a portfolio piece for job opportunities.



1️⃣ The User (the person using the app)
This is the person who opens the website, sees forms (like login or register), and fills them out.

Example: The user enters their email and password on /login and clicks "Submit."

2️⃣ The Controller
Think of it as a receptionist: it receives everything the user sends and decides where that information should go.

Example: The controller receives the login form and says, “Okay, let's check if this person exists,” then calls the service.

3️⃣ The Service
This is the brain of the app. It makes decisions, applies rules, and performs the main tasks.

Example: The service checks if the email exists, if the password is correct, and what should happen next.

4️⃣ The Repository
It's like an assistant who knows how to find things in old files (the database). The service asks it to look up or save data.

Example: The service says, “Find this user in the database” or “Save this new user.”

5️⃣ The Database
This is where all the information is stored, like registered users, passwords, settings, etc.

Example: It responds with “Yes, this user exists,” or “The new user has been saved.”






 

No comments:

Post a Comment