This project implements a user authentication system using Node.js and MySQL. It supports user registration, login, and token-based authentication with refresh tokens.
-User registration and login
-JWT authentication
-Refresh token mechanism
-CRUD operations for user data
-Transaction logging for auditing purposes
-Node.js
-Express.js
-MySQL
-JWT (JSON Web Tokens)
-bcrypt.js for password hashing
-Node.js (v14 or higher)
-MySQL Server
-MySQL Workbench (optional for managing the database)
-Postman for testing APIS
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.