{"size": 566, "ext": "js", "max_stars_repo_path": "Get Method.js", "max_stars_repo_name": "sanjeev8386/File-uploading", "max_stars_repo_stars_event_min_datetime": "2019-03-03T06:05:35.000Z", "max_stars_repo_stars_event_max_datetime": "2019-03-03T06:27:24.000Z", "max_issues_repo_path": "Get Method.js", "max_issues_repo_name": "sanjeev8386/File-uploading", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Get Method.js", "max_forks_repo_name": "sanjeev8386/File-uploading", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 5, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.6086956522, "max_line_length": 50, "alphanum_fraction": 0.6395759717}
var express = require("express");
var app = express();

app.get('/index.html', function(req, res){
    res.sendFile(__dirname + "/" + "Post.html");
})

app.get("/process_get", function(req, res){
    // preparing output
    response = {
        first_name:req.query.first_name,
        last_name:req.query.last_name
    };
    console.log(response);
    res.end(JSON.stringify(response));
})

var server = app.listen(8081, function(){
    var host = server.address().address
    var port = server.address().port

    console.log("app is listening at", host, port)
})