This is a Node.js-based User Authentication API using Express and MongoDB. It includes user registration, login, and password reset functionality via email.
- User Registration: Users can register with a name, email, and password.
- Login: Registered users can log in with email and password.
- Forgot Password: Users can request a password reset email.
- Reset Password: Allows users to reset their password via a link sent to their email.
- JWT Authentication: Provides a JWT token upon successful login for session management.
- Node.js: Server runtime environment
- Express: Web framework
- MongoDB: Database for storing user information
- Mongoose: ODM to interact with MongoDB
- JWT: Token-based authentication
- Nodemailer: For sending password reset emails
- BCrypt: Password hashing
-
Clone the repository
git clone https://github.com/Inno-cent/User-authentication-API
-
Npm install
npm install
-
Set up environment varialbes
-
Npm run dev
This README outlines the functionality of your User Authentication API, installation instructions, and API details, making it easier for others to understand and contribute to the project.