Skip to content

CRUD operation in API using Typescript,NodeJs,ExpressJs and MongoDB

Notifications You must be signed in to change notification settings

NandlalShah955/ineuron_assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

CRUD operation in API using Typescript,NodeJs,ExpressJs and MongoDB

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published