1.0.4 ā€¢ Published 4 years ago

typescript-nestjs-starter v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

NestJs with TypeScript's application generator.

šŸ§ What is it?

nestjs is A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.

šŸ¤” Why typescript-nestjs-starter?

Nest (NestJS) is a framework for building efficient, scalable Node.js server-side applications. It uses progressive JavaScript, is built with and fully supports TypeScript (yet still enables developers to code in pure JavaScript) and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).

Under the hood, Nest makes use of robust HTTP Server frameworks like Express (the default) and optionally can be configured to use Fastify as well!

Nest provides a level of abstraction above these common Node.js frameworks (Express/Fastify), but also exposes their APIs directly to the developer. This allows developers the freedom to use the myriad of third-party modules which are available for the underlying platform.

āš™ļø Installation

$ npm install -g typescript-nestjs-starter

šŸš€ Quick Start

The quickest way to get started is use npx and pass in the name of the project you want to create. If you don't specify a project name, the default typescript-nestjs-starter will be used instead.

Create the app:

$ npx typescript-nestjs-starter "project name"

Start your typescript-nestjs-starter app in development mode at http://localhost:3000/

$ cd "project name" && npm run start

šŸŽ  Available commands for the server.

  • Run the Server in production mode : npm run start.
  • Run the Server in development mode : npm run dev.
  • Run all unit-tests: npm run test.
  • Check for linting errors: npm run lint.

ā›‘ Code Structure(default)

ā”‚
ā”œā”€ā”€ /src
ā”‚   ā”œā”€ā”€ /app
ā”‚   ā”‚   ā””ā”€ā”€ /users
ā”‚   ā”‚       ā”œā”€ā”€ /dtos
ā”‚   ā”‚       ā”‚   ā””ā”€ā”€ users.dto.ts
ā”‚   ā”‚       ā”‚
ā”‚   ā”‚       ā”œā”€ā”€ /interfaces
ā”‚   ā”‚       ā”‚   ā””ā”€ā”€ users.interface.ts
ā”‚   ā”‚       ā”‚
ā”‚   ā”‚       ā”œā”€ā”€ /models
ā”‚   ā”‚       ā”‚   ā””ā”€ā”€ users.model.ts
ā”‚   ā”‚       ā”‚
ā”‚   ā”‚       ā”œā”€ā”€ users.controller.spec.ts
ā”‚   ā”‚       ā”œā”€ā”€ users.controller.ts
ā”‚   ā”‚       ā”œā”€ā”€ users.module.ts
ā”‚   ā”‚       ā””ā”€ā”€ users.service.ts
ā”‚   ā”‚
ā”‚   ā”œā”€ā”€ app.controller.spec.ts
ā”‚   ā”œā”€ā”€ app.controller.ts
ā”‚   ā”œā”€ā”€ app.module.ts
ā”‚   ā”œā”€ā”€ app.service.ts
ā”‚   ā””ā”€ā”€ main.ts
ā”‚
ā”œā”€ā”€ /test
ā”‚   ā”œā”€ā”€ app-e2e-spec.ts
ā”‚   ā””ā”€ā”€ jest-e2e.json
ā”‚
ā”œā”€ā”€ .gitignore
ā”œā”€ā”€ .prettierrc
ā”œā”€ā”€ jest.config.js
ā”œā”€ā”€ nest-cli.json
ā”œā”€ā”€ package-lock.json
ā”œā”€ā”€ package.json
ā”œā”€ā”€ tsconfig.build.json
ā”œā”€ā”€ tsconfig.json
ā””ā”€ā”€ tslint.json

šŸ’³ License

MIT

šŸ¤ Contributors

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.1

4 years ago