Expressjs boiler plate using typescript.
- Run
npm install
to install dependencies. - Run in the server watch mode with
npm run dev-watch
(auto restart on file changes).
- Run
npm install
to install dependencies. - Run
npm run build
to compile scripts. - Run
npm run production
to start the server in production mode.
Note the production mode fork process equal to number of your cpu thread.
ESLint configuration is included and extended eslint-config-airbnb-typescript-prettier
. To enable linting in vscode
please install ESLint and Prettier plugins in extenstion tab. After installation ESLint will ask for permission to run from node_modules
. Press allow to finish the setup.
Ctrl + Shift + P
then switchDebug: toggle auto attach
to on.- Start server by
npm run dev
ornpm run dev-watch
(debugging is not enable in production mode). - Add some breakpoints.
- Debugger will auto attached to node process.
- Enjoy debugging!