- TypeScript, only required during development
- npm install -D [email protected]
- Linter for TypeScript
- npm install -D [email protected]
- Express for Node.js
- npm install -S [email protected]
- Express types for TypeScript type inference
- npm install -D @types/[email protected]
- File watcher to make development easier
- npm install -D nodemon
- In the package.json the parameter "outDir": "dist" is used to output the JavaScript files for Prod use
npm start package.json 'start' script will transpile typescript to dist folder then run dist/app.js
npm run start:watch package.json 'start:watch' script uses nodemonConfig to watch files and 'start' on file change
- ENV_PRODUCTION=true/false
- PORT_DEFAULT=xxxx