Functional Programming with NestJS, Prisma.
immutable, pure, stateless.
A production ready typescript backend repository utilized those libraries:
- NestJS : A progressive Node.js framework
- Prisma : Next-generation Node.js and TypeScript ORM
- eslint-plugin-functional disable mutation and promote functional programming lint.
- Developing a production-ready API with NestJS + Prisma.
- Learning functional-programming with Typescript.
index | Name | start-branch | complete-branch | docs |
---|---|---|---|---|
0 | Setup and integraion Prisma with nestJS | start/integration-prisma | integration-prisma | docs/integration-prisma |
1 | REST API with type-safe validator | start/crud-API | crud-API | docs/crud-API |
2 | Handling Prisma Exception | @TODO | @TODO | @TODO |
3 | Authorization | @TODO | @TODO | @TODO |
4 | Relation Data Structure | @TODO | @TODO | @TODO |
5 | Use functional in API | @TODO | @TODO | @TODO |
6 | Use functional in conditional type | @TODO | @TODO | @TODO |
INF | More Contents. | @TODO | @TODO | @TODO |
-
- Initialize prisma
-
- First prisma migration
-
- Implement prisma service
-
- Use prisma for /users api
-
- Implement explicit prisma connect
-
- Implement user.validator
-
- Implement: createUser
-
- Implement: getOneUser
-
- Implement: updateUser
-
- Implement: deleteUser
-
- Implement: transform string to number use globalPipe