🔗 Live App: User Management App
A responsive and modular User Management React Application built using React 19, Tailwind CSS v4, Vite, and Axios. The app integrates with the Reqres API to implement login authentication, user listing with pagination, and CRUD operations for managing users.
This assignment was completed in three levels of increasing complexity:
- Login screen with form validation
- Auth via Reqres API using:
- Email:
[email protected] - Password:
cityslicka - Endpoint:
POST /api/login
- Email:
- On success, token is stored in
sessionStorage - Redirects to the User List page
- Displays paginated users using:
- Endpoint:
GET /api/users?page=1
- Endpoint:
- Info shown: First Name, Last Name, Email, Avatar
- Responsive card-based UI
- Pagination controls
- Edit User:
- Pre-filled form with name/email
PUT /api/users/:id
- Delete User:
DELETE /api/users/:id
- Toast notifications for actions (success/error)
✅ Token-based Login & Session Management
✅ Protected Routes functionality added
✅ Auto Logout After 1 Hour of Inactivity
✅ Paginated User Listing
✅ Edit User Details with Form Validation
✅ Delete User with Confirmation Prompt
✅ Client-side Search & Filtering
✅ Fully Responsive Design (Mobile + Desktop)
✅ Modular Folder Structure with Reusable Components
- Token is stored in localStorage and expires after 1 hour
- sessionStorage is optionally used to persist user state
- App state updates immediately after edit or delete api actions with help of sessionStorage
💡 Required versions:
- Node.js: v22.14.0
- React: v19
- Tailwind CSS: v4
git clone https://github.com/Arjunp04/employwise-frontend-assignment.gitnpm installnpm run dev🟢 Your frontend should be running at http://localhost:5173.
Create a .env file at the root with the following variable:
VITE_BASE_URL="https://reqres.in"Displays landing page with Get started button
Shows login with validation and toast notifications on success or failure.
Displays paginated users fetched from the Reqres API.
Pre-filled form to update user data.
User card removed modal with toast confirmation.
User searched from searchbar





