This is a starter template for a Deta project using Node, Express and Typescript.
- Node 14.x (as Deta Micros use Node 14.x)
- Express 4.18.1
- Typescript 4.8.3
src/
: the typescript source filesdist/
: the compiled js filesindex.js
: imports the compiledindex.js
and exports the app for Deta
Install dependencies.
yarn
Run ts-node src/index.ts
and watch all the typescript files inside src/
.
yarn dev
Compile the source files. Deploy index.js
pointing at dist/index.js
and the other compiled files in dist/
yarn deploy