/express-typescript-example

Example of setting up Express.js using TypeScript

Primary LanguageTypeScriptApache License 2.0Apache-2.0

Express.js + TypeScript + Docker example

This example demonstrates how to build an Express.js application using TypeScript, and how to wrap the app into Docker container.

Application dependencies

Environment dependencies

Usage

  • npm install && npm run build: build the project
  • npm run start:dev: start development server watching changes in ./src
  • npm start: start production server running the compiled app in ./lib
  • npm run build:docker: build Docker container image
  • npm run start:docker: launch Docker container using the image