Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,153,248 members, 7,818,842 topics. Date: Monday, 06 May 2024 at 06:26 AM |
Nairaland Forum / Science/Technology / Programming / Getting Started With Node: Writing A Simple Server With Node (721 Views)
My First Day With Node Js (I Made My Own Database System) / Help With Node.js App Deployment To Heroku (Solved!!!) / Connecting AOL Mail Server With The Windows Live Mail Server. (2) (3) (4)
(1) (Reply)
Getting Started With Node: Writing A Simple Server With Node by Olumyco(m): 12:35pm On Apr 08, 2020 |
A simple server in Node can just be as below: const http = require('http'); const port = 3000; let server = http.createServer(function(request, response) { response.write('Hello Nairalanders'); }); server.listen(port, function() { console.log('Server running on port ' + port); }); Gbam that's it. Simple and straight forward. To understand it better and learn more, watch the video tutorial below. https://www.youtube.com/watch?v=GqPypLWyADA |
Re: Getting Started With Node: Writing A Simple Server With Node by Playforkeeps(m): 8:26pm On Apr 08, 2020 |
Hey OP, i checked your video out just to see if it was actually your content and it was! Its not easy putting out a tutorial video out there, cheers! And also wouldn't it be more helpful to show the server tutorials with a Node framework such as Express? as almost no one writes code nowadays without any form of abstraction. |
Re: Getting Started With Node: Writing A Simple Server With Node by Olumyco(m): 12:29am On Apr 09, 2020 |
Playforkeeps: Yea... I have two videos already on Express framework, Building a RESTful API with Express and Node Part 1 and 2. Below are the videos: https://www.youtube.com/watch?v=dDwvcS7Tnig https://www.youtube.com/watch?v=O4SHn37ExpA |
(1) (Reply)
Volunteers Create World's Fastest Supercomputer To Combat Coronavirus / My Best Laravel Tutors! / Ip Adress Tracking
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 10 |