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
Sur cette page du site, vous pouvez voir la vidéo en ligne Simple Node Express Api | Backend Basics durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Red Eye Media 08 août 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 127 fois et il a aimé 10 téléspectateurs. Bon visionnage!