Skip to content

zhixiangyao/nest-server-api-starter

Repository files navigation

Nest Logo

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

Description

Nest framework TypeScript starter repository.

Tree

├── Dockerfile
├── README.md
├── docker-compose.yml
├── http.http
├── nest-cli.json
├── package.json
├── src
│   ├── app.config.ts
│   ├── app.environment.ts
│   ├── app.module.ts
│   ├── main.ts
│   ├── modules
│   │   └── cats
│   │       ├── cats.controller.spec.ts
│   │       ├── cats.controller.ts
│   │       ├── cats.module.ts
│   │       ├── cats.service.ts
│   │       ├── dto
│   │       │   └── index.ts
│   │       └── entities
│   │           ├── cat.entity.ts
│   │           └── index.ts
│   ├── processors
│   │   └── database
│   │       └── database.module.ts
│   └── utils
│       └── logger.ts
├── test
│   ├── cats.e2e-spec.ts
│   └── jest-e2e.json
├── tsconfig.build.json
└── tsconfig.json

Installation

$ pnpm install

Build Docker image

  • need docker image

    $ pnpm run build:image
  • build compose

    $ docker-compose --project-name nest-mongodb-server up
    

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

About

nestjs + mongodb + swagger

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published