Let’s create a REST API using Node.js only, without Express
Code:
https://github.com/bradtraversy/vanilla-node-rest-api
Timestamps:
- 0:00 - Intro
- 2:03 - Getting Started
- 3:06 - HTTP Create Server
- 5:27 - Send a Simple Response
- 10:43 - Simple Routing
- 13:17 - Create The Model & Controller
- 14:45 - Get All Products
- 19:35 - Get Product By ID
- 27:15 - Create Product
- 39:17 - Getting Body Data
- 48:38 - Updating Products
- 56:36 - Deleting Products
#node #api #javascript #programming #developer