- Node.js (>=14.x)
- MongoDB (Cloud or Local instance)
Clone the repository and install dependencies: git clone https://github.com/AbhI9519/UserManagement.git cd authLogin npm install
Create a .env file in the root directory and configure the following variables:
PORT=5000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_secret_key
Start the development server: npm run dev
For production: npm start
Run unit tests using Jest: npm test
POST /api/auth/signup- User SignupPOST /api/auth/login- User LoginPOST /api/auth/forgot-password- Forgot PasswordGET /api/auth/profile- Get Profile (Requires Auth)POST /api/auth/create-new-password- Reset Password
src/- Contains the main application codetests/- Contains unit and integration tests.env- Stores environment variablespackage.json- Project dependencies and scripts