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.
- Host: GitHub
- URL: https://github.com/unix/nest-prisma-template
- Owner: unix
- License: mit
- Created: 2021-05-21T10:53:32.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-06T13:17:49.000Z (over 3 years ago)
- Last Synced: 2025-03-28T19:55:03.719Z (3 months ago)
- Language: TypeScript
- Size: 93.8 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)