Planning digital marketing campaigns, including web, SEO/SEM, email, social media and display advertising. Maintaining our social media presence across all digital channels. Measuring and reporting on the performance of all digital marketing campaigns.
Thursday, 11 July 2019
Tuesday, 2 July 2019
How to Create server in node js
step1: Create one folder nodeserver > install package.json
step2: Create new file index.js ==> in index.js type the following code
const http = require('http');
const hostname ="localhost"';
const port = 3000;
const server = http.createServer((req,res) => {
console.log(req.headers);
res.statusCode = 200;
res.setHeader('Content-Type','text/html');
res.end('<html><body><h1> Server Connect </h1></body></html>');
});
server.listen(port,hostname,() ==> {
console.log(`server running at http://${hostname}:${port}');
});
Step 3 : Add script "start" :"node index";
Step 4 : Run the server in commandprompt
Output
Step 5 : Check in Webbrowser
Subscribe to:
Posts (Atom)
SEO introduction
What is SEO? SEO(Search Engine Optimization ) is a technique that helps to bring the Website on top. Seo depends on the Keyword . Ke...
-
Inbound marketing is a technique for customers to sale products and services via content marketing, social media marketing, search engi...
-
step1: Create one folder nodeserver > install package.json step2: C reate new file index.js ==> in index.js type the following cod...
-
Node . js is a platform built on Chrome's JavaScript run time for easily building fast and scalable network applications. We can ru...