- Spring Boot DevTools;
- Lombok;
- Spring Web (MVC);
- Spring Security;
- Spring Data JPA;
- PostgreSQL Driver;
- Java Mail Sender.
It’s a complete REST API backend, that saves personal data, like email and password, and sends a confirmation email using a unique generated token, that expires in 15 minutes.
First, you do a registration using a normal request:
You can make a POST request using postman on the address:
“http://localhost:8080/api/v1/registration”.
The POST request will return a unique generated token.
To use the mail sending you will have to install and run MailDev:
$ npm install -g maildev
$ maildev
Then, open the MailDev address: “http://0.0.0.0:1080/#/"
A new confirmation email will be there:
Click on the link in less than 15 minutes and the account will be enabled.
After that, open the address: “http://localhost:8080/login”
And sign in with the credencials used on the registration.
Amigoscode - Java Tutorial - Complete User Login and Registration Backend + Email Verification: https://www.youtube.com/watch?v=QwQuro7ekvc