Backend
Ahmed Abdelmageed3 min read
One backend, many coffee shops: multi-tenancy with Express and PostgreSQL
How My Coffee keeps every shop's menu, staff and orders apart in one API and one database: a shop on every row, a tenant read from the database and not the token, and tests that try to cross the line.
- Backend
- PostgreSQL
- Security
Ahmed Abdelmageed4 min read
Printing kitchen tickets from a cloud app with an 89-line Node bridge
How an order placed on a phone reaches a thermal printer inside a coffee shop: a polling bridge with no dependencies, tickets drawn as images so Arabic prints correctly, and a queue that survives a crash.
- Backend
- APIs


