This project provides a secure backend implementation for user registration, login, email verification, and JWT token-based authentication.
- Java 8
- Spring Boot 2.5.4
- Spring Security
- Spring Data JPA
- Maildev (SMTP server for testing email)
- JSON Web Tokens (JWT)
- Maven
- 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
- Clone the repository to your local machine:
git clone https://github.com/oussama-gadria/Signup-and-Signin-using-spring-
- Navigate to the project directory:
cd Signup-and-Signin-using-spring-
- Build the project using Maven:
mvn clean package
spring.datasource.url=jdbc:mysql://localhost:3306/your-database-name spring.datasource.username=your-database-username spring.datasource.password=your-database-password
spring.mail.host=localhost spring.mail.port=1025
jwt.secret=your-jwt-secret-key
jwt.secret=your-jwt-secret-key
- Start the Maildev server:
maildev
- Start the backend server:
java -jar localisation-To-Your-JarFle.jar
- The backend server will be running at http://localhost:8080.
This project is licensed under the MIT License.