How To Create a Simple HTTP Server with Node.js

Publié le: 30 juin 2020
sur la chaîne: Code With Bubb
16,635
161

In this tutorial, you'll learn how to create a simple HTTP server with Node.js and it's built in libraries without any frameworks.

— Follow Me —
Twitter:   / codebubb  
Facebook:   / juniordevelopercentral  
Blog: https://www.juniordevelopercentral.com/
— Thanks! —

So if you want to learn how to create a simple HTTP server with Node.js this video will guide you how to use the functions built in to the Node.js HTTP library to easily setup a basic web server (to serve HTML with Node.js) or event modify the type of data being returned to the user (e.g. serve JSON with Node.js).

Either way, you'll learn about the key function (the createServer function) that is used to setup basic HTTP servers with Node.js and learn how to send headers to set the content-type with Node.js and finally write data to be seen in the browser.

Serve JSON with Node.js
Serve HTML with Node.js
#Node.js #HTTPServer Channel Handle @codebubb


Sur cette page du site, vous pouvez voir la vidéo en ligne How To Create a Simple HTTP Server with Node.js durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Code With Bubb 30 juin 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 16,635 fois et il a aimé 161 téléspectateurs. Bon visionnage!