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
En esta página del sitio puede ver el video en línea Simple Node Express Api | Backend Basics de Duración hora minuto segunda en buena calidad , que subió el usuario Red Eye Media 08 agosto 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 127 veces y le gustó 10 a los espectadores. Disfruta viendo!