Skip to content

Starter for NestJS projects using TypeScript

License

Notifications You must be signed in to change notification settings

dominique-mueller/node-typescript-nestjs-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7f60568 · Sep 17, 2021

History

11 Commits
Nov 5, 2020
Aug 31, 2019
Nov 5, 2020
Jul 20, 2019
Sep 17, 2021
Aug 31, 2019
Jul 20, 2019
Nov 5, 2020
Nov 5, 2020
Jul 23, 2019

Repository files navigation

node-typescript-nestjs-starter

Starter for NestJS projects using TypeScript



What it does

This is a starter project for NodeJS backend applications, based on the NestJS framework, written in TypeScript. 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 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.



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 ✔️
npm run start:build Runs the production build ✔️
npm run test Executes all unit tests ✔️
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.