Skip to content

jhnlynn/Prisma_Nest_TTRL

Repository files navigation

Next steps:

  1. Set the DATABASE_URL in the .env file to point to your existing database. If your database has no tables yet, read https://pris.ly/d/getting-started
  2. Set the provider of the datasource block in schema.prisma to match your database: postgresql, mysql, sqlite, sqlserver, mongodb or cockroachdb (Preview).
  3. Run prisma db pull to turn your database schema into a Prisma schema.
  4. Run prisma generate to generate the Prisma Client. You can then start querying your database.

To start with psql:

uname and password

postgres 12345678

-p 5432

some basic stuff

psql -U username

CREATE DATABASE mydb WITH ENCODING 'UTF8' LC_COLLATE='English_United States' LC_CTYPE='English_United States';

To play w/ Prisma

CRUD APIs

https://www.prisma.io/docs/concepts/components/prisma-client/crud

In the future, you need to run prisma generate after every change to your Prisma models to update your generated Prisma Client.

Use Prisma Client in your NestJS services

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

Nest framework TypeScript starter repository.

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Stay in touch

License

Nest is MIT licensed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors