A simple Node.js application for performing bulk API requests testing.
This tool allows you to send multiple concurrent requests to a specified API endpoint and monitor their responses. It's useful for testing API endpoints under load or performing basic stress testing.
Clone the repository and install dependencies: bash git clone [your-repo-url] cd api-test-node npm install
Edit index.js
to configure:
API_URL
: Your target API endpointREQUEST_COUNT
: Number of concurrent requests to send (default: 200)
Run the application with: bash git clone [your-repo-url] cd api-test-node npm install
Edit index.js
to configure:
API_URL
: Your target API endpointREQUEST_COUNT
: Number of concurrent requests to send (default: 200)
Run the application with:
bash node index.js
The script will:
- Send the specified number of concurrent requests to the target API
- Log the status of each request
- Display a completion message when all requests are finished
- axios: ^1.7.9 - Promise-based HTTP client for making requests