abdelhadidevv / prisma-with-postgresql-typescript

Node.js Backend Example with Prisma and PostgreSQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Node.js Backend Example with Prisma and PostgreSQL

This just simple Node.js backend app show how to getting started with Prisma and PostgreSQL using Typescript.

Getting Started

  1. Add your DATABASE_URL in .env file:
DATABASE_URL="RBRACE_TO_YOUR_POSTRGRESQL_URL"
  1. Run this command:
npx prisma migrate dev
  1. And run this command:
npx prisma generate
  1. And run this command to add default data to database:
npx prisma db seed
  1. If you want to run the project run this command:
npm run dev

About

Node.js Backend Example with Prisma and PostgreSQL


Languages

Language:TypeScript 83.6%Language:Shell 16.4%