Skip to content

The LogInSystem Backend is a robust and secure solution for user authentication and password management, built using Spring Boot and PostgreSQL.

License

Notifications You must be signed in to change notification settings

Amitabhchaurasia/LogInSystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

LogInSystem Backend

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.

Table of Contents

Prerequisites

Before using this backend, ensure you have the following:

  1. Spring Tool Suite 4 or a compatible Java IDE.
  2. PostgreSQL installed and running.
  3. Knowledge of how to configure a database in Spring Boot applications.

Technologies Used

  • 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.

API Endpoints

  1. User Signup

    • Endpoint: http://localhost:8085/signup
    • Method: POST
    • Input:
      {
          "userId": "newUserID",
          "dob": "16/2/22",
          "name": "Name Of user",
          "password": "password"
      }
  2. User Login

    • Endpoint: http://localhost:8085/login/{userId}/{password}
    • Method: GET
  3. Password Reset (Step 1 - Check User)

    • Endpoint: http://localhost:8085/resetIn
    • Method: POST
    • Input:
      {
          "userId": "UserID",
          "dob": "16/2/22"
      }
  4. Password Reset (Step 2 - Update Password)

    • Endpoint: http://localhost:8085/updatePassword/{userID}/{newpassword}
    • Method: POST

Explore the application for additional APIs that may assist in your UI development.

Setup

  1. Clone this repository to your local machine.

  2. Configure your PostgreSQL database in application-dev.properties located in src/main/resources.

  3. Ensure you have the necessary dependencies added in the pom.xml file for each service if you want to use a different database.

Usage

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.

Contributing

Contributions are welcome! If you have any suggestions, improvements, or bug fixes, please feel free to open an issue or create a pull request.

About

The LogInSystem Backend is a robust and secure solution for user authentication and password management, built using Spring Boot and PostgreSQL.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages