AsyncCSVXpert is a web application that allows users to upload CSV files, processes the URLs contained within, performs HTTP HEAD requests, and returns a CSV with detailed response information. The project consists of a Rust backend and a React frontend.
- Prerequisites
- Setup
- Demo
- Building the Backend
- Running the Backend
- Configuration
- Building the Frontend
- Running the Frontend
- Usage
Before you begin, ensure you have the following installed:
- Rust (including cargo)
- Node.js and npm (for the React frontend)
Clone the repository:
cd AsyncCSVXpertNavigate to the Rust backend directory and install dependencies:
cd csv_processor
cargo buildNavigate to the React frontend directory and install dependencies:
cd csv-processor-frontend
npm installTo build the Rust backend, navigate to the csv_processor directory and run:
cargo build --releaseThe compiled binary will be located in the target/release directory.
To run the Rust backend, execute:
cargo runThe backend server will start, typically on http://localhost:8080.
- To change the number of threads used by the Rust backend, modify the value in the .env file inside the csv_processor directory. Default is 20.
To build the React frontend, navigate to the csv-processor-frontend directory and run:
npm run buildThe build output will be located in the build directory.
To run the React frontend in development mode, execute:
npm startThe frontend will start, typically on http://localhost:3000.
- Open your web browser and navigate to http://localhost:3000.
- Upload a CSV file containing id and URL columns.
- The application will process the URLs, perform HTTP HEAD requests, and display the results.
- Download the processed CSV file with the results.
