Skip to content

System for user registration and login via OTP code.

Notifications You must be signed in to change notification settings

Eden-Yosef/OTP-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

OTP System 🔑

Development of a project from scratch for user registration and login using a one-time password (OTP) sent to email. Node.js server-side, React client-side, and MySQL Database. 🔨

In order to properly log in to the system, users must first register and then log in with the email they registered with. Afterward, they will receive a code to their email with a validity of 5 minutes, which they must enter during the login process.

Overview 🌐

The project consists of code divided into two main components:

Node.js Server: Embeds the application logic and operates as the request server. The server defines the API endpoints. MySQL Database: Stores the required information such as user details.

Installation 📦

  1. Install Dependencies: Run the following command to install all required dependencies:
npm install
  1. Set Environment Variables: Edit the .env file and define your database connection details and any required settings.

  2. Run the Server: Once everything is set up correctly, run the following command to start the server:

node index.js

or

nodemon
  1. Run the Client:
npm run dev

The project provides authentication using OTP codes sent to the user's email upon registration.

Support

If you have any questions or issues, feel free to reach out. 😊

About

System for user registration and login via OTP code.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published