# AutoCAD Server A simple Node.js server to receive and store events from an AutoCAD plugin. ## Features - Receives object creation and modification events from AutoCAD - Stores events in memory (with option to use MongoDB) - Provides API endpoints to retrieve stored events - Simple setup and configuration ## Setup 1. Clone this repository 2. Install dependencies: ``` npm install ``` 3. Configure environment variables in `.env` file (optional) 4. Start the server: ``` node server.js ``` ## Usage The server provides the following endpoints: - `POST /api/autocad-events`: Endpoint for receiving events from AutoCAD - `GET /api/autocad-events`: Retrieve all stored events ## AutoCAD Plugin Configuration Update the `ServerEndpoint` variable in your AutoCAD plugin to point to this server: ```csharp private static readonly string ServerEndpoint = "http://localhost:3000/api/autocad-events"; ``` ## Using with MongoDB (Optional) To store events in MongoDB instead of memory: 1. Uncomment the MongoDB connection code in `server.js` 2. Set the `MONGODB_URI` in the `.env` file 3. Uncomment the MongoDB code in the controller ## License ISC