Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 840 Bytes

File metadata and controls

53 lines (36 loc) · 840 Bytes

Project setup:

npm init -y

npm install typescript @types/node --save-dev

npx tsc --init

mkdir src
touch src/index.ts

npm install ts-node nodemon --save-dev

Running:

npm run dev
# or with nodemon:
npm run watch

Production:

npm run build
npm run start

Like ZIO but flipped (confusingly):

Effect<A, E, R> A -> actual value / success channel E -> errors R -> requirements /environment

Running a typescript file:

ts-node src/test.ts
nodemon --exec ts-node src/index.ts

http://localhost:8080/docs