Example usage of @expo/entity.
This is a simple API server application built with Koa. The application allows users to create, read, update, and delete notes, and the notes are publicly visible.
For demonstration purposes, the application stores its data in-memory, and the memory is cleared when the application is terminated. In a production application, data would be persisted to persistent storage (Postgres) and optionally cached (Redis).
In this demonstration, all tests are able to be run as unit tests, but in a production application the router test would most likely need to be an integration test. That being said, any entity-related business logic can be unit tested as is demonstrated in NoteEntity-test
.