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

Overview

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
You might also like...

Prisma +2 generator to emit a tRPC shield from your Prisma schema

Prisma +2 generator to emit a tRPC shield from your Prisma schema

Prisma tRPC Shield Generator Automatically generate a tRPC Shield from your Prisma Schema. Updates every time npx prisma generate runs. Table of Conte

Dec 24, 2022

Prisma 2+ generator to emit Zod schemas from your Prisma schema

Prisma 2+ generator to emit Zod schemas from your Prisma schema

Prisma Zod Generator Automatically generate Zod schemas from your Prisma Schema, and use them to validate your API endpoints or any other use you have

Dec 27, 2022

This is a library to alternate and self-host the Prisma Data Proxy (cloud.prisma.io)

This is a library to alternate and self-host the Prisma Data Proxy (cloud.prisma.io)

Alternative Prisma Data Proxy This is a library to alternate and self-host the Prisma Data Proxy (cloud.prisma.io). In order to deploy your project to

Dec 28, 2022

Jargon from the functional programming world in simple terms!

Functional Programming Jargon Functional programming (FP) provides many advantages, and its popularity has been increasing as a result. However, each

Jan 4, 2023

Fun λ functional programming in JS

fp-js JavaScript Functional Programming Motivation This purposed for learning functional programming (just that). Features Auto-Curry Option Tooling s

Feb 4, 2022

Typescript library for functional programming.

Sa Lambda Typescript library for functional programming. Document TODO Either Maybe Iterator Pipe & Flow Task (Promise-Like) some math utils Installat

Dec 6, 2022

A RabbitMQ client for TypeScript, with functional programming in mind.

A RabbitMQ client for TypeScript, with functional programming in mind.

RabbitMQ-fp Lets feed our Rabbit' nicely 🐰 This repository contains a wrapper over amqplib written in Typescript with an accent of functionnal progra

Sep 6, 2022

Collection of benchmarks of functional programming languages and proof assistants.

Collection of benchmarks of functional programming languages and proof assistants.

Functional Benchmarks This repository contains a collection of benchmarks of functional programming languages and proof assistants. It is split in two

Dec 12, 2022

Create beautiful, functional and extensive (Multi) Select Fields with pure, vanilla JavaScript.

tail.select.js - Beautify Select Fields (formerly tail.select) Replace and Improve your HTML select fields with style and without jQuery! The tail.s

Dec 30, 2022
Comments
Owner
y0on2q
Typescript, NestJS, Prisma
y0on2q
A functional, immutable, type safe and simple dependency injection library inspired by angular.

func-di English | 简体中文 A functional, immutable, type safe and simple dependency injection library inspired by Angular. Why func-di Installation Usage

null 24 Dec 11, 2022
A simple Prometheus (aggregated) push gateway allowing stateless/serverless workloads, ephemeral and batch jobs to easily expose their metrics.

Serverless Prometheus (aggregated) Push Gateway A simple Prometheus (aggregated) push gateway allowing stateless/serverless workloads, ephemeral and b

Adam Janiš 17 Dec 4, 2022
A utility package to help implement stateless CSRF protection using the Double Submit Cookie Pattern in express.

Double CSRF A utility package to help implement stateless CSRF protection using the Double Submit Cookie Pattern in express. Dos and Don'ts • Getting

Psifi Solutions 24 Dec 28, 2022
This repository aims to create a POC about authentication and authorization using NestJS, Prisma and JWT.

A progressive Node.js framework for building efficient and scalable server-side applications. Description Nest framework TypeScript starter repository

Vinícius Fraga Modesto 2 Nov 2, 2022
Fullstack Turborepo starter. Typescript, Nestjs, Nextjs, Tailwind, Prisma, Github Actions, Docker, And Reverse proxy configured

Turborepo (NestJS + Prisma + NextJS + Tailwind + Typescript + Jest) Starter This is fullstack turborepo starter. It comes with the following features.

Ejaz Ahmed 132 Jan 9, 2023
Application template for NestJS + Docker + Prisma + MySQL

nestjs-docker-prisma-mysql Application template for NestJS + Docker + Prisma + MySQL Setup # install $ yarn # Setup env file for database $ cp .env.e

fsubal 6 Oct 15, 2022
REST API for a rudimentary blog - from Prisma Day 22 NestJS workshop

NestJS Workshop Prisma Day 22 - Let's build a REST API with NestJS and Prisma! Welcome to the code repository for the Prisma Day 2022 NestJS Workshop!

Tasin Ishmam 13 Jan 3, 2023
A basic example of a GraphQL API built with NestJS, Prisma and TypeScript

A progressive Node.js framework for building efficient and scalable server-side applications. Description Nest framework TypeScript starter repository

Richard Hong 15 Dec 18, 2022
Prisma +2 generator to emit Yup schemas from your Prisma schema

Prisma Yup Generator Automatically generate Yup schemas from your Prisma Schema, and use them to validate your API endpoints or any other use you have

Omar Dulaimi 31 Dec 24, 2022
Prisma 2+ generator to emit Joi schemas from your Prisma schema

Prisma Joi Generator Automatically generate Joi schemas from your Prisma Schema, and use them to validate your API endpoints or any other use you have

Omar Dulaimi 26 Dec 24, 2022