Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Latest commit

 

History

History
54 lines (46 loc) · 1.6 KB

INITIALISING_NODE_TS.md

File metadata and controls

54 lines (46 loc) · 1.6 KB

node-ts-express-boilerplate

Initialising TypeScript Node.js Project Commands

  • npm init
  • npm install
  • npm install typescript -s
  • Add "scripts": { "tsc": "tsc" }, to package.json
  • npm run tsc --init
  • Within this file we will uncomment the outDiroption and choose a location for the transpiled .js files to be delivered
  • npm install express -save
  • npm install @types/express -save-dev
  • npm install ts-node-dev -s
  • npm install -g typescript ts-node
  • runing script in package.json "dev": "ts-node-dev --respawn --transpileOnly ./app/app.ts",
  • runing script in package.json "prod": "tsc && node ./build/app.js"
  • npm run dev

Dependencies

  • npm install colors
  • npm i helmet
  • npm install @types/helmet
  • npm install -g typescript ts-node
  • npm install promise
  • npm install jsonwebtoken
  • npm install @types/jsonwebtoken
  • npm install bunyan
  • npm install @types/bunyan
  • npm install morgan
  • npm install @types/morgan
  • npm i rotating-file-stream
  • npm i bcrypt
  • npm install @types/bcrypt
  • npm i uuid
  • npm install @types/uuid
  • npm i util
  • npm install mysql2
  • npm install nodemailer
  • npm install @types/nodemailer
  • npm install formidable
  • npm install @types/formidable
  • npm install fs-extra
  • npm install @types/fs-extra

Links