How to build a login and registration with email verification using Java and Spring Framework

Inspired from AmigosCode

Image for post
Image for post
Image for post
Image for post
Login & Signup Form with Email Verification diagram [1]
Image for post
Image for post

Bootstrap the project

Let us initialize the Spring boot application. I personally find https://start.spring.io/ a convenient way to get started, so I’m going to go ahead and generate a Maven Spring Boot application, with some dependencies. Your Spring boot initialize should look like this:

Image for post
Image for post
Screenshot from https://start.spring.io/ showing Spring Boot project specifications.
Image for post
Image for post
project inside the IDE
Source Code from AmigosCode GitHub repo
mysql -u root -p
Image for post
Image for post
MySQL
create database registration;
Image for post
Image for post
npm install -g maildev
maildev
Image for post
Image for post
Image for post
Image for post
Source Code from AmigosCode GitHub repo
Source Code from AmigosCode GitHub repo
Source Code from AmigosCode GitHub repo
Source Code from AmigosCode GitHub repo
Source Code from AmigosCode GitHub repo
Source Code from AmigosCode GitHub repo
Image for post
Image for post
Source Code from AmigosCode GitHub repo
Source Code from AmigosCode GitHub repo
Image for post
Image for post
Photo by Imperva
Source Code from AmigosCode GitHub repo
Source Code from AmigosCode GitHub repo
Source Code from AmigosCode GitHub repo
Source Code from AmigosCode GitHub repo
Source Code from AmigosCode GitHub repo
Image for post
Image for post
Source Code from AmigosCode GitHub repo
Source Code from AmigosCode GitHub repo
mvn clean install
Image for post
Image for post
Image for post
Image for post
http://0.0.0.0:1080/
Image for post
Image for post
After clicking on Activate Now
Image for post
Image for post
List of tables
Image for post
Image for post
User info and confirmation info
Image for post
Image for post
http://localhost:8080/login
Image for post
Image for post

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store