₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,344,801 members, 8,513,765 topics. Date: Thursday, 05 November 2026 at 01:20 PM

Toggle theme

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

Nairaland Forum › Science/Technology › Programming › Getting Started With Node: Writing A Simple Server With Node (878 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. • 2 • 3 • 4

Which API Can I Use To Get Credit History • Please Where Can I Study Programming In Abuja? - • Sale Of Udemy Courses (request Courses For A Token)