Skip to content

Buidling CRUD api using nodejs, express & thunder clinet (vs code extension)...

Notifications You must be signed in to change notification settings

ullaskunder3/nodejs-crud-rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RESTapi

Buidling CRUD api using nodejs, express & thunder clinet (vs code extension)

  • A REST API (also known as RESTful API) is an application programming interface (API or web API) that conforms to the constraints of REST architectural style and allows for interaction with RESTful web services.

  • A controller determines what response to send back to a user when a user makes a browser request.

  • Routing refers to how an application’s endpoints (URIs) respond to client requests.

    • Routing refers to determining how an application responds to a client request to a particular endpoint,
    • which is a URI (or path) and a specific HTTP request method (GET, POST, and so on).

Get Node_package

Routes

GET/users :Find all users

POST/users :Create a users

GET/users/:id :Find user details

DELETE/users/:id :Delete a user

PATCH/users/:id :Update a user

project dir

│   .gitignore
│   index.js
|   node_modules
│   package-lock.json
│   package.json
│   README.md
│
├───controllers
│       users.js
│
└───routes
        users.js

setup

  • Install Nodemon

I assume you have Node.js and NPM installed. You can install Nodemon on your machine, globally, or locally on your project using NPM.

  • Install Nodemon globally

To install it globally, run "npm install --global nodemon". And Nodemon will be installed on your system path, and you will be able to use the "nodemon" command directly on the command line.

Start the Node server via NPM

npm start

About

Buidling CRUD api using nodejs, express & thunder clinet (vs code extension)...

Topics

Resources

Stars

Watchers

Forks