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...
-
Optimization for semantic search customers' questions or reviews written in natural language, your website has more chances to win ...
-
var fs = require('fs'); fs.writeFileSync('notes.txt',Hello Iam Rajashree); Go to cmd prompt < node app.js ...
-
<!DOCTYPE html> <html> <head> <title> fibonacci Serise </title> <script type="text/javascript...