Git Product home page Git Product logo

haulmatics-assesment-client's Introduction

Project Setup Guide

This project is a NestJS authentication and authorization system using JWT with refresh tokens and role-based actions, along with other features.

Setup Instructions

  1. Clone the Repository

    git clone <repository_url>
  2. Navigate to the Project Directory

    cd <project_directory>
  3. Build and Start Docker Compose

    docker-compose up --build
  4. Install PNPM Globally (if not already installed)

    npm install -g pnpm
  5. Install Project Dependencies

    pnpm install
  6. Run in Development Mode

    pnpm run dev

    OR

  7. Run the Production Build

    pnpm run build

Task Information

Project Setup: Created a new project using ReactJS and initialized it using Vite.

Authentication Pages: Developed a login page and home page using React Router DOM for routing. Additionally, implemented signup and admin privileged pages and integrated them with the REST API.

State Management: Utilized ReactJS with Redux Toolkit to manage state, specifically handling the login flow with credentials.

User Management Module: Implemented a new module to manage users, including functionalities for creating, updating, and deleting users. Used input fields for first name and last name. Ensured that these operations are securely managed and that admin-only features are implemented.

User Listing: Displayed users in tabular format, storing all user data inside the state. Restricted access to this list to only admin users.

Unit Testing: I acknowledge the necessity of unit tests for the create and update processes. However, I must note that I currently lack expertise in writing frontend unit tests. Despite this, I am committed to learning and implementing these tests in the future. It's important to mention that I have previously implemented basic CRUD unit tests using Jest for the backend.

Contact

If you encounter any issues or require clarification, please feel free to reach out.

haulmatics-assesment-client's People

Contributors

nilesh-vincent 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.