GithubHelp home page GithubHelp logo

task-manager-frontend's Introduction

Task Management Application

Introduction

This application is built using the MERN (MongoDB, Express.js, React.js, Node.js) stack. It includes CRUD functionality for tasks, JWT token authentication, user roles (admin and regular user), MongoDB integration for backend data storage, and a calendar component for task visualization.

Features

  • JWT token authentication.
  • User roles (admin and regular user) for authorization.
  • CRUD operations for tasks, with restricted access based on user roles.
  • Integration with MongoDB for storing task and user data.
  • Implementation of a resource calendar for task visualization.
  • Dynamic navigation system based on user roles.
  • Synchronization of the calendar component with the backend for adding tasks.

Significant Technologies Used

Backend:

  • Node.js
  • Express.js
  • MongoDB
  • Bcrypt

Frontend:

  • React.js
  • Axios for API requests
  • JWT for authentication
  • Tailwind CSS

Installation

  1. Clone the repository from GitHub: git clone <repository-url>
  2. Navigate to the backend folder and install dependencies: cd backend && npm install
  3. Set up the MongoDB database and configure the connection in the .env file.
  4. Run the backend server: npm start
  5. Navigate to the frontend folder and install dependencies: cd ../frontend && npm install
  6. Run the frontend application: npm start

Backend Setup

JWT Token Authentication:

  • Implemented using Passport.js middleware.
  • Routes for user registration, login, and logout.
  • Middleware for authentication and authorization.

User Roles:

  • Two user roles: admin and regular user.
  • Admins have full access to CRUD operations for tasks.
  • Regular users can only modify their tasks.

Task Model:

  • Enhanced to include a relationship with users.
  • Tasks can be assigned to specific users.

CRUD Operations for Tasks:

  • Implemented API routes and controllers for CRUD operations.
  • Users can only modify their tasks, while admins can modify any task.

MongoDB Integration:

  • MongoDB used for storing task and user data.
  • Database connection configured in the .env file.

Frontend Setup

User Authentication:

  • User registration, login, and logout components implemented.

Navigation System:

  • Dynamically changes based on user roles (admin or regular user).
  • JWT tokens used for authenticating and authorizing API requests.

Task Components:

  • Modified to allow only authorized users to perform CRUD operations.
  • UI components updated based on user roles.

Calendar Integration:

  • Synchronized with the backend for adding tasks.

UI Screenshots

Login Page

Registration Page

Task Dashboard - Regular User

Add Tasks Modal

Task Details

Admin Profile

Conclusion

The Task Management Application built using the MERN stack provides comprehensive functionality for managing tasks, user authentication, and role-based access control. The integration with MySQL and the implementation of a resource calendar enhance the user experience and productivity. For any issues or further assistance, please refer to the documentation or contact the developers.

task-manager-frontend's People

Contributors

shanb98 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.