Skip to content

Complete User Login and Registration Backend + Email Verification , use maildev as SMTP server to testing email , Security technologies: JWT tokens.

Notifications You must be signed in to change notification settings

oussama-gadria/Signup-and-Signin-using-spring-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

User Login and Registration Backend

License Java Spring Boot Build Status

This project provides a secure backend implementation for user registration, login, email verification, and JWT token-based authentication.

Table of Contents

Technologies

  • Java 8
  • Spring Boot 2.5.4
  • Spring Security
  • Spring Data JPA
  • Maildev (SMTP server for testing email)
  • JSON Web Tokens (JWT)
  • Maven

Features

  • User registration with email verification
  • User login with JWT token generation
  • Password hashing for secure storage
  • API endpoints for user management
  • Integration with Maildev for testing email functionality
  • Exception handling and error responses

Installation

  1. Clone the repository to your local machine:
git clone https://github.com/oussama-gadria/Signup-and-Signin-using-spring-
  1. Navigate to the project directory:
cd Signup-and-Signin-using-spring-
  1. Build the project using Maven:
mvn clean package

Database Configuration

spring.datasource.url=jdbc:mysql://localhost:3306/your-database-name spring.datasource.username=your-database-username spring.datasource.password=your-database-password

Maildev Configuration

spring.mail.host=localhost spring.mail.port=1025

JWT Configuration

jwt.secret=your-jwt-secret-key

Usage

jwt.secret=your-jwt-secret-key

  1. Start the Maildev server:
maildev
  1. Start the backend server:
java -jar localisation-To-Your-JarFle.jar
  1. The backend server will be running at http://localhost:8080.

License

This project is licensed under the MIT License.

About

Complete User Login and Registration Backend + Email Verification , use maildev as SMTP server to testing email , Security technologies: JWT tokens.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages