An open API service indexing awesome lists of open source software.

https://github.com/unix/nest-prisma-template

A template for creating API services based on NestJS and Prisma.
https://github.com/unix/nest-prisma-template

Last synced: 3 months ago
JSON representation

A template for creating API services based on NestJS and Prisma.

Awesome Lists containing this project

README

        

## Nest Prisma Template

A template for creating API services based on [NestJS](https://nestjs.com/) and [Prisma](https://www.prisma.io/).


This is the template I use a lot myself.
I have removed some unnecessary dependencies from the NestJS template to reduce the weight of the project,
and added some best practices related to Prisma.

If you like it, click the Use this template button on GitHub to use it.

## Guide

A Docker configuration for PostgreSQL has been prepared in the project, run `yarn up` to mount the database directly.

1. Run `yarn` to install deps.
2. Run `prisma generate` to generate prisma types.
3. Run `prisma migrate dev` to migrate database to latest version.
4. Run `yarn dev` lift server.

## Refs

- [Sentry](https://sentry.io/)
- [Prometheus](https://prometheus.io/docs/introduction/overview/)
- [Prisma](https://www.prisma.io/docs/concepts)
- [NestJS](https://docs.nestjs.com/)

## LICENSE

[MIT](./LICENSE)