Skip to content

Repository files navigation

Welcome to api 👋

Version License: ISC

Prisma API with basic CRUD for posts

Install

npm run dev-setup

Run DB

This command: 1.Downloads the postgres image (Docker is required) 2.Creates the container 3.Generate the DB schema 4.Populate DB with seed

npm run docker:run:postgres

Prisma Commands

Creates schema.prisma

npx prisma init

Generates Prisma Client (TS library with type-sage db access) based on Prisma Schema

npx prisma generate

Updates DB schema to match Prisma Schema

npx prisma db push

Opens GUI for Database

npx prisma studio

Populate DB

npm run seed

Usage

npm run build && npm run dev

Run tests

npm run test

Extra cmds

docker build -t workflow-api .
docker run -p 3001:3001 workflow-api
docker run -it --entrypoint sh workflow-api

This README was generated with ❤️ by readme-md-generator

Releases

Packages

Used by

Contributors

Languages