npm install
npm run dev
curl -X POST http://localhost:3000/api \
-H "Content-Type: application/json" \
-d '{"component": "door", "operation": "open"}'
curl -X POST http://localhost:3000/api \
-H "Content-Type: application/json" \
-d '{"component": "door", "operation": "close"}'
curl -X POST http://localhost:3000/api \
-H "Content-Type: application/json" \
-d '{"component": "led", "operation": "on"}'
curl -X POST http://localhost:3000/api \
-H "Content-Type: application/json" \
-d '{"component": "led", "operation": "off"}'
curl -X POST http://localhost:3000/api \
-H "Content-Type: application/json" \
-d '{"component": "led", "operation": "dim"}'
curl -X POST http://localhost:3000/api \
-H "Content-Type: application/json" \
-d '{"component": "led", "operation": "brighten"}'
curl -X POST http://localhost:3000/api \
-H "Content-Type: application/json" \
-d '{"component": "lcd", "message": "text input"}'