/nest-rest-api-2024

Nest REST API 2024 is a complete package for developing robust RESTful APIs with Nest.js. Integrating MongoDB and Bearer token authentication, it offers a fast, secure solution for web and mobile applications.

Primary LanguageTypeScriptMIT LicenseMIT

Nest Logo

Nest.js API REST Starter Pack 2024

Description

Welcome to the Starter Pack for developing a REST API with Nest.js in 2024! This project provides you with a solid, structured basis for getting started quickly on the development of robust, scalable backend applications.

Overview

This Starter Pack is designed to enable you to quickly create a modern REST API with Nest.js, a highly scalable and modular Node.js framework. It incorporates the latest development practices and the best technologies available in 2024, enabling you to concentrate on creating quality functionality rather than technical configuration.

Installation

$ pnpm install

Environment variable

# create file .env
PORT=3000
VERSION_APP=0.0.1
MONGO_URL="mongodb://127.0.0.1:27017/data"
SECRETJWT="pwFmKSw4VNY&9qN"

Running the app

# development
$ pnpm run start

# watch mode
$ pnpm run start:dev

# production mode
$ pnpm run start:prod

Test

# unit tests
$ pnpm run test

# e2e tests
$ pnpm run test:e2e

# test coverage
$ pnpm run test:cov

Docker

# Start project in docker
$ docker compose up

# Close project in docker
$ docker compose down

PostMan File

Stay in touch

License

Nest is MIT licensed.