Skip to content

⚡ RMM ⚡ Standard and basic structure to assist in the quick start of tests, projects, pocs with this technology.

License

Notifications You must be signed in to change notification settings

ricardo-melo-martins/nestjs-skeleton

Repository files navigation

⚡ RMM ⚡

NestJs Skeleton

Standard and basic structure to assist in the quick start of tests, projects, pocs with this technology.

*pt-br Estrutura padrão e básica para auxiliar no início rápido de testes, projetos, pocs com esta tecnologia.

Description

Structure was based on
Nest framework TypeScript starter repository.

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

Features

  • Modular Structure
  • Defines for Style and Linting (ESLint, Prettier, EditorConfig)

Requirements

Installation

Cloning

git clone https://github.com/ricardo-melo-martins/nestjs-skeleton.git

... entering on nestjs-skeleton dir

cd nestjs-skeleton

composer install


# make it yours (optional)
rm -rf .git

Configure

Copy example environment

cp ./config/.env.example .env

then change the configuration according to the database you want to use.

Database

DATABASE_DEFAULT_TYPE=mysql
DATABASE_DEFAULT_HOST=127.0.0.1
DATABASE_DEFAULT_PORT=3306
DATABASE_DEFAULT_DATABASE=my_database
DATABASE_DEFAULT_USERNAME=root
DATABASE_DEFAULT_PASSWORD=YourP@ssw0rd!

Running the app

# development
npm run start

# watch mode
npm run start:dev

# production mode
npm run start:prod

Test

# unit tests
npm run test

# e2e tests
npm run test:e2e

# test coverage
npm run test:cov

License

Nest is MIT licensed.

About

⚡ RMM ⚡ Standard and basic structure to assist in the quick start of tests, projects, pocs with this technology.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published