REST API using Node.js and Typescript with:
- Express
- MySql
- Sequelize
- Install
typescript
local
npm install typescript -D
- Add to
package.json
scripts
"tsc": "tsc"
- Init
tsconfig.json
npm run tsc -- --init
- Install
ts-node-dev
npm install ts-node-dev -D
- Add to
package.json
scripts
"dev": "ts-node-dev src/app.ts"
Change src/app.ts
with your app entry point.
Now you can use npm run dev
to compile and run your app.