A typescript-based backend featuring :
- NestJS framework to handle architecture, with Fastify
- TypeORM to handle Database requests
- GraphQL to handle centralized and typed requests from frontend
- Unit tests with Jest
- ParcelJS to handle bundling and HMR, alongwith typescript auto-type-checking
- Manually create a database (without any table)
- Add your database credentials in
settings.ts
- For each table, prepare its corresponding
XXXX.entity.ts
schema, where XXXX is the table name.
yarn
I strongly suggest using 4 terminals
yarn start // will start hot-reloading Parcel bundler
yarn type-check // will start Typescript watcher
yarn test // will start unit tests watcher
... and the last one in your IDE for usual commands, etc...