Skip to content

agents-on-cloud/prisma-example1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prisma Typescript Example1

Description

This is a simple example of how to use Prisma with Typescript, using the Prisma Client, the project includes a simple CRUD of Authors and Books.

How to use

Install

npm install

Run

npm run dev

Check .env file

DATABASE_URL="postgresql://postgres:postgres@localhost:5432/prisma-ts?schema=public"

Check Prisma schema

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}

generator client {
  provider = "prisma-client-js"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •