Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ever0de/fastify-starter-kit
Prisma + Fastify + Mocha + Chai is a fastify-starter-kit that lets you get started quickly.
https://github.com/ever0de/fastify-starter-kit
chai fastify mocha prisma typescript
Last synced: 3 months ago
JSON representation
Prisma + Fastify + Mocha + Chai is a fastify-starter-kit that lets you get started quickly.
- Host: GitHub
- URL: https://github.com/ever0de/fastify-starter-kit
- Owner: ever0de
- License: mit
- Created: 2022-03-27T07:18:42.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-10T10:41:57.000Z (almost 2 years ago)
- Last Synced: 2023-03-04T05:33:21.094Z (almost 2 years ago)
- Topics: chai, fastify, mocha, prisma, typescript
- Language: TypeScript
- Homepage:
- Size: 270 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fastify-starter-kit
Prisma + Fastify + Mocha + Chai is a fastify-starter-kit that lets you get started quickly
## File Structure
```shell
.
├── prisma # related DB(prisma) Schema files
├── schema-gen.sh # A shell script that collects *.primsa files and makes them into one file
├── src
├── dao # Defines modules to be reused in services
├── dto # Responsible for request and response object in routes
├── plugins # Directory for DI using `fastify-plugins` with `fastify-autoload`
├── routes # Directory for routes using `fastify-autoload`
└── services # As a concept higher than `dao`, it is responsible for the final business logic used in routes
├── tests
├── routes
├── services
└── helper.ts
└─── tsconfig.json
```## TODO List
1. Apply error handling library e.g) `neverthrow`
2. Apply mock library e.g) `ts-mockito`