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

https://github.com/mochrks/crud-nestjs-api

the implementation of a CRUD API using the NestJS framework. It includes Create, Read, Update, and Delete operations with a scalable and modular architecture. The repository utilizes TypeScript, Prisma ORM for database interactions,
https://github.com/mochrks/crud-nestjs-api

nestjs prisma psotgresql typescript

Last synced: 3 months ago
JSON representation

the implementation of a CRUD API using the NestJS framework. It includes Create, Read, Update, and Delete operations with a scalable and modular architecture. The repository utilizes TypeScript, Prisma ORM for database interactions,

Awesome Lists containing this project

README

        

CRUD API NestJS


Tech Stack Icons

### Project Overview

This project is a RESTful API for Order Management built using **NestJS**, utilizing **Prisma** as the ORM for database interactions, and **PostgreSQL** as the database. It provides comprehensive endpoints for managing orders, menus, carts, and vouchers.

### Tech Stack & Dependencies
![NestJS](https://img.shields.io/badge/NestJS-E0234E?style=flat-square&logo=nestjs&logoColor=white)
![TypeScript](https://img.shields.io/badge/TypeScript-007ACC?style=flat-square&logo=typescript&logoColor=white)
![PostgreSQL](https://img.shields.io/badge/PostgreSQL-336791?style=flat-square&logo=postgresql&logoColor=white)
![Prisma](https://img.shields.io/badge/Prisma-2D3748?style=flat-square&logo=prisma&logoColor=white)

### Setup & Installation

- **Clone the repository**
```bash
git clone https://github.com/Mochrks/crud-nestjs-api.git
cd crud-nestjs-api
```

- **Install dependencies**
```bash
npm install
```

- **Configure Database**
- Update `.env` file with your PostgreSQL credentials:
```dotenv
DATABASE_URL="postgresql://your_username:your_password@localhost:5432/your_database"
```

- **Run Prisma Migrations**
```bash
npx prisma migrate dev --name init
```

- **Run the application**
```bash
npm start
```

## Connect with me:
[![GitHub](https://img.shields.io/badge/GitHub-333?style=for-the-badge&logo=github&logoColor=white)](https://github.com/mochrks)
[![YouTube](https://img.shields.io/badge/YouTube-FF0000?style=for-the-badge&logo=youtube&logoColor=white)](https://youtube.com/@Gdvisuel)
[![Instagram](https://img.shields.io/badge/Instagram-E4405F?style=for-the-badge&logo=instagram&logoColor=white)](https://instagram.com/mochrks)
[![LinkedIn](https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white)](https://linkedin.com/in/mochrks)
[![Behance](https://img.shields.io/badge/Behance-1769FF?style=for-the-badge&logo=behance&logoColor=white)](https://behance.net/mochrks)
[![Dribbble](https://img.shields.io/badge/Dribbble-EA4C89?style=for-the-badge&logo=dribbble&logoColor=white)](https://dribbble.com/mochrks)