Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.1 KB

File metadata and controls

42 lines (31 loc) · 1.1 KB

UserAuthSystem

This project implements a user authentication system using Node.js and MySQL. It supports user registration, login, and token-based authentication with refresh tokens.

Features

-User registration and login
-JWT authentication
-Refresh token mechanism
-CRUD operations for user data
-Transaction logging for auditing purposes

Technologies Used

-Node.js
-Express.js
-MySQL
-JWT (JSON Web Tokens)
-bcrypt.js for password hashing

Prerequisites

-Node.js (v14 or higher)
-MySQL Server
-MySQL Workbench (optional for managing the database)
-Postman for testing APIS

Setup Instructions

Follow these steps to set up and run the application locally:

### 1. Clone the Repository
Clone this repository to your local machine using the following command:  
```bash
git clone
https://github.com/yourusername /UserAuthSystem.git cd UserAuthSystem


### 2. Database Setup
To set up the database, run the SQL commands mentioned in the mysql.txt file


### 3. Postman Setup
You can use Postman to test the API endpoints. Refer to the APIs mentioned in the postman.txt file.