https://github.com/ullaskunder3/nodejs-crud-rest
Buidling CRUD api using nodejs, express & thunder clinet (vs code extension)...
https://github.com/ullaskunder3/nodejs-crud-rest
crud-api es6-javascript express nodejs server thunder-client
Last synced: 26 days ago
JSON representation
Buidling CRUD api using nodejs, express & thunder clinet (vs code extension)...
- Host: GitHub
- URL: https://github.com/ullaskunder3/nodejs-crud-rest
- Owner: ullaskunder3
- Created: 2021-10-29T14:29:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-29T14:54:20.000Z (over 3 years ago)
- Last Synced: 2025-02-08T22:25:29.353Z (3 months ago)
- Topics: crud-api, es6-javascript, express, nodejs, server, thunder-client
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```npm install
```## Routes
```js
GET/users :Find all usersPOST/users :Create a users
GET/users/:id :Find user details
DELETE/users/:id :Delete a user
PATCH/users/:id :Update a user
```project dir
```cmd
│ .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
```bash
npm start
```