The LogInSystem Backend
is a robust and secure solution for user authentication and password management, built using Spring Boot and PostgreSQL. It provides a set of powerful APIs that can be easily integrated into your web or mobile application to handle user registration, login, and password reset.
Before using this backend, ensure you have the following:
- Spring Tool Suite 4 or a compatible Java IDE.
- PostgreSQL installed and running.
- Knowledge of how to configure a database in Spring Boot applications.
- Spring Boot: A powerful framework for building Java-based applications.
- Regular Expression: Used for pattern matching and validation.
- PostgreSQL: A popular open-source relational database.
- Object-Relational Mapping (ORM): Simplifies database interactions with Java objects.
-
User Signup
- Endpoint:
http://localhost:8085/signup
- Method: POST
- Input:
{ "userId": "newUserID", "dob": "16/2/22", "name": "Name Of user", "password": "password" }
- Endpoint:
-
User Login
- Endpoint:
http://localhost:8085/login/{userId}/{password}
- Method: GET
- Endpoint:
-
Password Reset (Step 1 - Check User)
- Endpoint:
http://localhost:8085/resetIn
- Method: POST
- Input:
{ "userId": "UserID", "dob": "16/2/22" }
- Endpoint:
-
Password Reset (Step 2 - Update Password)
- Endpoint:
http://localhost:8085/updatePassword/{userID}/{newpassword}
- Method: POST
- Endpoint:
Explore the application for additional APIs that may assist in your UI development.
-
Clone this repository to your local machine.
-
Configure your PostgreSQL database in
application-dev.properties
located insrc/main/resources
. -
Ensure you have the necessary dependencies added in the
pom.xml
file for each service if you want to use a different database.
To use this backend, start the Spring Boot application and make HTTP requests to the provided API endpoints. You can test the APIs using tools like Postman.
Contributions are welcome! If you have any suggestions, improvements, or bug fixes, please feel free to open an issue or create a pull request.