This is a sample project for using TypedRest for TypeScript. It provides a simple REST API for storing contacts in an address book and uses SQLite for persistence.
The code is split across npm workspaces:
- server/: a Fastify service backed by better-sqlite3
- client/: a TypedRest client library
- dto/: DTOs shared by the client and the server
- tests/: tests that ensure the client and server work together
npm install
npm run build
npm run test
npm run start # starts the service on http://localhost:5000