A simple login and authentication system to learn more about Spring Security and API securing. Project developed with Java, Spring Boot, Spring Security, Spring Data JPA and Java Mail Sender.
This layer is at the top of the architecture. This tier is responsible for:
✔️ Performing authentication.
✔️ Converting JSON data into an object (and vice versa).
✔️ Handling HTTP requests.
✔️ Transfering authentication to the business layer.
The business layer is responsible for:
✔️ Performing validation.
✔️ Performing authorization.
✔️ Handling the business logic and rules.
This layer is responsible for:
✔️ Containing storage logic.
✔️ Fetching objects and translating them into database rows (and vice versa).
This layer is simply the actual database that is responsible for:
✔️ Performing database operations (mainly CRUD operations).
- Clone the repository
- Navigate to the project directory
- Build the project using Maven:
./mvnw clean install
- Run the project using Maven wrapper:
./mvnw spring-boot:run
- The application will start on http://localhost:8080
- You will also need the database installed on your machine and set the connection vars on the application.properties or application.yml