Before running the server, make sure you have the following installed:
- Node.js (v12 or higher)
- MongoDB (local or remote)
- User authentication and authorization using JSON Web Tokens (JWT).
- CRUD operations for managing tasks.
- User registration and login functionality.
- User registration with email verification.
- Password reset feature.
- Secure password storage using bcrypt hashing algorithm.
git clone https://github.com/SHREYK213/MERN-stack_TaskHive
npm install-all
MONGODB_URL = your-mongodb-url
ACCESS_TOKEN_SECRET = Rj2S?RVe9[]8-dCS6A**&b5Tsg$gwbg~Bd{*QTK
SMTP_USER=
SMTP_PASS=
npm run dev
Access the app at http://localhost:3000.
-
User Endpoints:
POST /users
- Register a new userPOST /users/login
- Login and generate a JWT tokenPOST /users/logout
- Logout and invalidate the JWT tokenPOST /users/logoutAll
- Logout from all devices
-
Task Endpoints:
POST /tasks
- Create a new taskGET /tasks
- Get all tasksGET /tasks/:id
- Get a specific taskPATCH /tasks/:id
- Update a specific taskDELETE /tasks/:id
- Delete a specific task
For detailed documentation of each endpoint and request/response examples, please refer to the API documentation provided with this repository.
If you want to contribute to this project, you can follow these steps:
- Fork the repository.
- Create a new branch for your feature/bug fix.
- Make your changes and commit them.
- Push the changes to your fork.
- Submit a pull request to the main repository.
If you have any questions or suggestions, feel free to contact me.