This project is an Express.js server that accepts POST requests on the /events route and writes the received event data to a local file (events.json). If the file does not exist, it will be created.
-
Clone the repository:
git clone <repository-url> cd rmm-load-testing
-
Install dependencies:
npm install- **Run Server: **
node server.js- Testing: Use this curl to test
curl -X POST http://localhost:3000/events -H "Content-Type: application/json" -d '{"name": "Sample Event", "date": "2024-06-26"}'