MERN Task Manager is a web application for basic task management. It allows users to sign up, log in, create, view, update, and delete tasks.
- Signup
- Login
- Logout
- Add tasks
- View tasks
- Update tasks
- Delete tasks
- Toasts for success and error messages
- Form validations in frontend and backend
- Fully Responsive Navbar
- Token based Authentication
- Use of 404 page for wrong urls
- Relevant redirects
- Global user state using Redux
- Custom Loaders
- Use of layout component for pages
- Use of theme colors
- No external CSS files needed (made using Tailwind CSS)
- Usage of Tooltips
- Dynamic document titles
- Redirect to previous page after login
- Use of various React hooks
- Custom hook also used (useFetch)
- Routes protection
- Middleware for verifying the user in backend
- Use of different HTTP status codes for sending responses
- Standard pratices followed
- HTML
- CSS
- Javascript
- Tailwind CSS
- Node.js
- Express.js
- React
- Redux
- Mongodb
Following are the major dependencies of the project:
- axios
- react
- react-dom
- react-redux
- react-router-dom
- react-toastify
- redux
- redux-thunk
- bcrypt
- cors
- dotenv
- express
- jsonwebtoken
- mongoose
- Node.js must be installed on the system.
- You should have a MongoDB database.
- You should have a code editor (preferred: VS Code)
-
Install all the dependencies
Go inside client folder and run npm install and also run npm install in parent folder. -
Create a file named ".env" inside the parent folder. Add data from .env.example file and substitute your credentials there.
-
Start the application
npm run dev
-
Go to http://localhost:3000
- POST /api/auth/signup - POST /api/auth/login - GET /api/tasks - GET /api/tasks/:taskId - POST /api/tasks - PUT /api/tasks/:taskId - DELETE /api/tasks/:taskId - GET /api/profile
Inside client folder:
npm start: Starts frontend in development modenpm run build: Builds the frontend for production to the build foldernpm test: Launches the test runner in the interactive watch modenpm run eject: This will remove the single build dependency from the frontend.
Inside parent folder:
npm run dev: Starts backend using nodemon.npm start: Starts backend without nodemon.
-
This project
- Github Repo: https://github.com/adarsh-206/VE3
-
Official Docs
- Reactjs docs: https://reactjs.org/docs/getting-started.html
- npmjs docs: https://docs.npmjs.com/
- Mongodb docs: https://docs.mongodb.com/manual/introduction/
- Github docs: https://docs.github.com/en/get-started/quickstart/hello-world
-
Download links
- Nodejs download: https://nodejs.org/
- VS Code download: https://code.visualstudio.com/