Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/dhurtado714-itesm/nestjs-swagger


https://github.com/dhurtado714-itesm/nestjs-swagger

nestjs openapi swagger-ui

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# 🚀 NestJS Project with Swagger Documentation and Route Filtering

This project is built using [NestJS](https://nestjs.com/), a progressive Node.js framework for building efficient and scalable server-side applications. It integrates [Swagger](https://swagger.io/) for automatic API documentation generation and includes route filtering based on paths, allowing for the creation of multiple files depending on the route path.

## ✨ Features

- **NestJS Framework**: Utilizes NestJS for building robust, testable, and scalable server-side applications.
- **Swagger Integration**: 📝 Automatically generates interactive API documentation using Swagger.
- **Route Filtering by Paths**: 🚦 Supports route filtering and separation by paths.
- **Dynamic File Generation**: 🗂️ Capable of generating multiple files depending on the specified path.

## 📦 Getting Started

### ✅ Prerequisites

Ensure you have the following installed:

- [Node.js](https://nodejs.org/en/) (v14.x or later)
- [npm](https://www.npmjs.com/) (v6.x or later) or [yarn](https://yarnpkg.com/)

### 📥 Installation

1. Clone the repository:

```bash
git clone https://github.com/your-repo/nestjs-swagger-route-filter.git
cd nestjs-swagger-route-filter
```

2. Install the dependencies:

```bash
pnpm install
```

3. Start the application:

```bash
pnpm run start:dev
```

The server will start at `http://localhost:3000` by default.

## Special Thanks

@bujosa for the original filtering code.