Skip to content

risersh/rest

Repository files navigation

polyrepo.pro API

This is the API for the polyrepo.pro project.

Commands

Command Description
make db/generate Generates the Prisma client
make db/migrate Migrates the database
make db/spy Generate schema documentation and ERD.
make run Runs the API

make db/generate

Generates the Prisma client library from the prisma/schema.prisma file and outputs it to prisma/db.

make db/migrate

Performs database migrations to the database specified in the .prisma.env file.

make run

Runs the API.

make db/spy

Generates schema documentation and ERD.

This will output to the tmp/schemaspy directory. You can then open the index.html file in your browser to view the documentation.

Argument Description
-- --open Opens the schemaspy report in your browser (macOS only).

Example:

make db/spy -- --open

alt text