Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/dominique-mueller/node-typescript-nestjs-starter

Starter for NestJS projects using TypeScript
https://github.com/dominique-mueller/node-typescript-nestjs-starter

boilerplate ncc nestjs nodejs seed starter template typescript

Last synced: 21 days ago
JSON representation

Starter for NestJS projects using TypeScript

Awesome Lists containing this project

README

        

# node-typescript-nestjs-starter

**Starter for [NestJS](https://nestjs.com/) projects using [TypeScript](https://www.typescriptlang.org/)**



## What it does

This is a starter project for NodeJS backend applications, based on the **[NestJS](https://nestjs.com/)** framework, written in
**[TypeScript](https://www.typescriptlang.org/)**. The setup comes with tasks for building and testing the application, further
aspects like linting and / or formatting are not defined but can easily be added on top.

**Here is where things get interesting:** This starter project uses **[ncc](https://github.com/zeit/ncc)** as its build tool. This enables
us to deliver the production build of the application as a single minified JavaScrip bundle. _No copying of `node_modules` is necessary, no
`npm install` on servers required!_

> Also see the official **[Nest Framework TypeScript Starter](https://github.com/nestjs/typescript-starter)**.



## Commands

The following commands are available:

| Command | Description | CI |
| --------------------- | -------------------------------------------------- | ------------------ |
| `npm start` | Creates a development build, running in watch mode | |
| `npm run build` | Creates a production build | :heavy_check_mark: |
| `npm run start:build` | Runs the production build | :heavy_check_mark: |
| `npm run test` | Executes all unit tests | :heavy_check_mark: |
| `npm run test:watch` | Executes all unit tests, running in watch mode | |

> The `build` command will output the result into the `build` folder, the application itself will be put at `build/index.js`. The test
> coverage will be put into the `coverage` folder.