Skip to content

Latest commit

 

History

History
35 lines (31 loc) · 771 Bytes

Readme.md

File metadata and controls

35 lines (31 loc) · 771 Bytes

Hi Viewers Thankyou For Visiting this Repo

Endpoints for this API is

GET:http://localhost:8080/task
ADD:http://localhost:8080/task (just do post request here)
DELETE:http://localhost:8080/task/id (Provide id of the task you want to delete)
UPDATE:http://localhost:8080/task/id (Provide id of the task you want to update)

Commands for setting NodeJs project with typescript
npm init -y
npm init -D typescript @types/express ts-node nodemon
npm i express
npx tsc --init
uncomment rootDir in tsconfig.json "rootDir":"./src"

uncomment outDir in tsconfig.json "outDir":"./dist"

In package.json do this inside script object "watch":"tsc -w",
"start": "tsc && nodemon dist/app.js"