Let's learn the basics of backend with Node Express.
Here we will create a GET and a POST endpoint for getting a list of customers and creating new customers.
This is probably one of the simplest APIs you can make.
To query our data we will use Postman.
This tutorial is mainly focused on the fundamentals of making a api and backend fundamentals.
In addition this is a great intro to MERN stack projects, bacause a lot of MERN stack apps start out like this.
Timecodes
0:00 - Intro
0:35 - creating our files
1:25 - installing dependencies
03:00 - creating our data
05:00 - GET route
07:30 - using Postman for GET
08:50 - POST route
10:30 - Postman POST
Complete code on Github:
https://github.com/Polkagris/node_exp...
How to get the code without using the terminal:
1. Go to the Github link
2. Click on the green Code-button
3. Click Download ZIP
4. Extract and open the folder in your preferred code editor (I'm using visual studio code, download link below)
5. To see the game in action, just open the index.html file in you browser
Read my blog on Dev.to - https://dev.to/redeyemedia
On this page of the site you can watch the video online Simple Node Express Api | Backend Basics with a duration of hours minute second in good quality, which was uploaded by the user Red Eye Media 08 August 2021, share the link with friends and acquaintances, this video has already been watched 127 times on youtube and it was liked by 10 viewers. Enjoy your viewing!