This is the API for the polyrepo.pro project.
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 |
Generates the Prisma client library from the prisma/schema.prisma file and outputs it to prisma/db.
Performs database migrations to the database specified in the .prisma.env file.
Runs the API.
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