Skip to content
Snippets Groups Projects
Commit 0b58af13 authored by sl3499's avatar sl3499
Browse files

Sever implementation in node.js.

parent 5a23d0b6
No related branches found
No related tags found
No related merge requests found
Pipeline #1724 passed
var express = require('express');
var request = require('request');
var bodyparser = require('body-parser');
var unirest = require('unirest');
var app = express();
var path = require("path");
app.use(bodyparser.urlencoded({extended:false}));
app.use(bodyparser.json())
app.use(express.static('.'));
app.get('/', function(request, response) {
response.sendFile(path.join(__dirname + '/index.html'));
});
app.listen(8080, function(){
console.log("Server started")
})
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment