₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,326,276 members, 8,425,768 topics. Date: Saturday, 13 June 2026 at 04:11 AM

Toggle theme

Getting Started With Node: Writing A Simple Server With Node - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingGetting Started With Node: Writing A Simple Server With Node (840 Views)

1 Reply

Getting Started With Node: Writing A Simple Server With Node by Olumyco(op): 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(op): 12:29am On Apr 09, 2020
Playforkeeps:
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.
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

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.234

..Covid19 Dashboard For Nigeria and other African Countries.Turn On/off Bulb Light Using Html,css,javascript By Cob Technologies