Skip to content

Instantly share code, notes, and snippets.

@darwin-morocho
Created November 11, 2019 21:11
Show Gist options
  • Save darwin-morocho/0206c3891804473268923dd3ea08e369 to your computer and use it in GitHub Desktop.
Save darwin-morocho/0206c3891804473268923dd3ea08e369 to your computer and use it in GitHub Desktop.
  npm i -D ts-node nodemon typescript  
npm i jsonwebtoken cors express
tsc --init   

in your tsconfig.json in compilerOptions

  "target": "es6",
  "outDir": "./dist",
"rootDir": "./src",
"moduleResolution": "node"

in your package.json

  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "node dist/app.js",
    "dev": "nodemon src/app.ts",
    "build": "tsc -p ."
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment