X
X

Select Your Currency

Türk Lirası $ US Dollar
X
X

Select Your Currency

Türk Lirası $ US Dollar
1 Yıllık Alımlarda Geçerli %15 İndirim Detaylı Bilgi İçin Tıklayın!

Knowledge Base

HomepageKnowledge BaseGeneralCreating a NodeJS Server

Creating a NodeJS Server

With the http module in Nodejs:

var http = require('http');

http.createServer(function (req, res) {
res.write('Teknosos');
res.end();
}).listen(8080);

With Expressjs:

To install Express:

npm i express

const express = require('express')
const app = express()
const port = 3000

app.get('/', (req, res) => res.send('Teknosos'))

app.listen(port, () => console.log(`My sample application is running on ${port}!`))

Can't find the information you're looking for?

You have examined the knowledge base in detail, but if you cannot find the information you need,

Create a Support Ticket
Did you find it useful?
(343 times viewed. / 0 people found helpful.)