This is a simple React-based User Management application that allows users to sign up, view a list of registered users, delete users, select multiple users, and export selected users' data to a CSV file.
This is a simple React-based User Management application that allows users to sign up, view a list of registered users, delete users, select multiple users, and export selected users' data to a CSV file.
Clone the repository:
git clone https://github.com/yourusername/user-management-app.git
cd user-management-app
Install dependencies:
npm install
Start the backend server:
Ensure that the backend API is running locally. Navigate to the backend directory and start the server:
npm run server
Start the React app:
npm start
This command will start the application and open it in your default web browser. The app will be available at http://localhost:3000.
The backend API should expose the following endpoints:
GET /users
: Retrieve the list of users.POST /users/register
: Register a new user.DELETE /users/delete/:userId
: Delete a user by ID.GET /users/export
: Export selected users' data to a CSV file.To start the backend server locally, use the following command in the backend project directory:
npm run server