Skip to content

Typescript starter pack for typescript/node.js development.

Notifications You must be signed in to change notification settings

qest-cz/nodejs-typescript-starter

Repository files navigation

Nodejs typescript starter

If you need typescript starter pack for node.js development. You are on right place. Repository contains only must have (for our point of view) dependencies to build. The repository solves 4 main parts

  • Run in development mode - we use ts-node as a typescript execution environment, dot-env library for setting up environment variables
  • Run tests there is a predefined way how to run tests with jest
  • Build application - for build is used classic way of tsc
  • Run in production mode - run compiled code

List of used libraries

  • jest for testing and code coverage
  • prettier, tslint for code style checking
  • ts-node-dev for running project in development mode (automatic restart on change)
  • pino-pretty for nice console output

Scripts

Basic scripts

  • yarn install dependencies
  • yarn build build application
  • yarn dev start development mode
  • yarn test run tests
  • yarn eslint:fix apply prettier rules for project
  • yarn start start compiled application

Useful for CI/CD

  • yarn test:cover check code coverage in project
  • yarn eslint:check checking code style policies by prettier and eslint

FAQ

Where can env variables can be set?

  • For setting of env variables is used dotenv package, there are .env files in ./config folder

About

Typescript starter pack for typescript/node.js development.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •