Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sdn302/nest-prisma-mongo
NestJs + Prisma + MongoDB
https://github.com/sdn302/nest-prisma-mongo
mongodb nestjs prisma swagger
Last synced: about 1 month ago
JSON representation
NestJs + Prisma + MongoDB
- Host: GitHub
- URL: https://github.com/sdn302/nest-prisma-mongo
- Owner: SDN302
- License: mit
- Created: 2024-09-21T16:07:54.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-24T04:08:51.000Z (4 months ago)
- Last Synced: 2024-10-28T21:19:56.472Z (3 months ago)
- Topics: mongodb, nestjs, prisma, swagger
- Language: TypeScript
- Homepage: https://nest-prisma-mongo.onrender.com/api-docs
- Size: 175 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SDN302 - Group 1
## Implement the end-to-end solution integrating Nestjs, mongodb, Prisma to build REST API### Tech Stack
### Setup
- Create Nest Project```bash
npm i -g @nestjs/cli
``````bash
nest new project-name
```- Install prisma
```bash
npm install -g prisma
``````bash
npx prisma init
```- Push the initial schema to the database:
```bash
npx prisma db push
```- Generates files based on a schematic
```bash
nest g [options]
```| Name | Alias | Description |
|-------------|-------|-------------------------------------------------------------------------------------------------|
| controller | co | Generate a controller declaration. |
| module | mo | Generate a module declaration. |
| service | s | Generate a service declaration. |### Run:
```bash
npm run start
```