- npm init -y
- npm i express dotenv cors helmet
- npm i -D typescript
- npm i -D @types/node @types/express @types/cors @types/helmet
- npx tsc --init
- npm i -D ts-loader webpack webpack-cli webpack-node-externals
- npm i -s @overnightjs/core @overnightjs/logger
- npm i -D @types/node @types/express
- npm install -s @types/body-parser @types/cors @types/helmet
- npm install reflect-metadata --save
create index.js file create webpack.config.ts
- npm run webpack
- npm start
#Secure https://auth0.com/blog/use-typescript-to-create-a-secure-api-with-nodejs-and-express-getting-started/ https://stackabuse.com/authentication-and-authorization-with-jwts-in-express-js/