Skip to content

Functional Programming with NestJS, Prisma. immutable, pure, stateless

Notifications You must be signed in to change notification settings

ltnscp9028/functional-nestjs

Repository files navigation

Functional-NestJS

Functional Programming with NestJS, Prisma.
immutable, pure, stateless.

1. Introduction

A production ready typescript backend repository utilized those libraries:

2. Curriculum

2.1 Goal

  • Developing a production-ready API with NestJS + Prisma.
  • Learning functional-programming with Typescript.

3. Contents

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

3.1. Setup and integraion Prisma with nestJS

    1. Initialize prisma
    1. First prisma migration
    1. Implement prisma service
    1. Use prisma for /users api
    1. Implement explicit prisma connect

3.2 REST API with type-safe validator

    1. Implement user.validator
    1. Implement: createUser
    1. Implement: getOneUser
    1. Implement: updateUser
    1. Implement: deleteUser
    1. Implement: transform string to number use globalPipe

About

Functional Programming with NestJS, Prisma. immutable, pure, stateless

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published