/example-express-typescript-setup

An example of how to setup simple Express server with Typescript

Primary LanguageTypeScript

Example Typescript Express Server Setup

How to get going with Express and Typescript quickly.

Included:

  • Example package.json including dev dependencies (typescript, nodemon, ts-node, eslint, node types, etc.)
  • Example tsconfig.json configuration for typescript

CLI

  • To build run npm run build. This will create dist/ directory with compiled index.js file.
  • To run the build run npm run start:build
  • To run the app with compilation run npm run start
  • To run the app and recompile/restart with changes run npm run start:watch