Skip to content

imrea/simple-nodejs-typescript-starter

Repository files navigation

Simple Node.js TypeScript Starter | 2021

Inspired by Khalil Stemmler's Simple TypeScript Starter | 2020

Features

  • Minimal
  • TypeScript v4
  • Testing with Jest and Supertest
  • Linting with Eslint and Prettier
  • Pre-commit hooks with Husky
  • Commit messages with git-cz
  • VS Code debugger scripts
  • Local development with Nodemon

Scripts

yarn run dev

Starts the application in development using nodemon and ts-node to do hot reloading.

yarn run start

Starts the app in production by first building the project with yarn run build, and then executing the compiled JavaScript at build/index.js.

yarn run build

Builds the app at build, cleaning the folder first.

yarn run test:unit

Runs the unit tests inside src.

yarn run test:e2e

Runs the e2e tests inside e2e.

yarn run test

Runs all test suites.

yarn run pretty

Format your code.

yarn run lint

Lint your code.