Introduction

Prisma is an open source database toolkit. It consists of three main tools:

  • Prisma Client: An auto-generated and type-safe query builder for Node.js and TypeScript.
  • Prisma Migrate: A declarative data modeling and migration system.
  • Prisma Studio: A GUI to view and edit data in your database.

These tools aim to increase an application developer’s productivity in their database workflows. One of the top benefits of Prisma is the level of abstraction it provides: Instead of figuring out complex SQL queries or schema migrations, application developers can reason about their data in a more intuitive way when using Prisma to work with their database.

In this tutorial, you will build a REST API for a small blogging application in TypeScript using Prisma and a PostgreSQL database. You will set up your PostgreSQL database locally with Docker and implement the REST API routes using Express. At the end of the tutorial, you will have a web server running locally on your machine that can respond to various HTTP requests and read and write data in the database.

#postgresql #prisma #rest #api #typescript

How To Build a REST API with Prisma and PostgreSQL
4.80 GEEK