Skip to content

chanakadrathnayaka/Node-Express-TypeScript-template

Repository files navigation

Node-Express-TypeScript template

This project is created as a template to start any Node-Express project using typescript

Scripts

npm start

Application starts with watch mode on.

npm run start-debug

Application starts with watch mode + debug on.

npm run build

Application build package is created in ./dist folder.

postbuild

The current script depends on linux's cp (copy) command. The user has to change it according to their operating system.

The developer does not have to run this as it will automatically run after npm run build

npm run test

Run all existing test cases

Features

  1. TypeScript execution engine : tsx
  2. Live reload : livereload, connect-livereload
  3. dotenv configuration : dotenv
  4. Debug mode : debug

Testing

Tests can be run without building the code with the help of ts-jest

  1. Utility Unit testing : Jest
  2. Request Unit testing : SuperTest

Other information

  1. Template engine : pug
  2. HTTP request logger middleware : morgan

Maintenance

Update packages

Run npx npm-check-updates -u

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published