The purpose of this library is to be your real-time zero-code API server.
Broker is a SSE message broker that requires you write no backend code to have a full real-time API.
Broker is born from the need that rather than building a complex REST API with web-sockets and a SQL database to provide reactive web forms (like for React) there must be a simpler way.
Broker follows an insert-only/publish/subscribe paradigm rather than a REST CRUD paradigm.
- the origin (CORS) needs to be passed in as a flag with wildcard not supported
- the port needs to be passed in as a flag
- the expiry (for jwts) needs to be passed in as a flag (in seconds)
- the secret (for jwts) needs to be passed in as a flag
Example: sudo broker -port 8080 -origin http://localhost:3000 -expiry 3600 -secret secret