Last active
July 16, 2021 18:50
-
-
Save ChechoCZ/7dffd831cc8273c33c60b40dbb7b630a to your computer and use it in GitHub Desktop.
TypeScript Node Express
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yarn init -y | |
yarn add express | |
yarn add typescript @types/node @types/express -D | |
yarn tsc —init || npx tsc --init | |
tsconfig: | |
"outDir": "./dist", | |
"rootDir": "./src", | |
yarn add ts-node-dev | |
"scripts": { | |
"build": "tsc", | |
"dev": "ts-node-dev src/server.ts", | |
"start": "npm run build && node dist/server.js" | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment