Skip to content

Commit

Permalink
mapping application added
Browse files Browse the repository at this point in the history
  • Loading branch information
itzmeanjan committed Apr 13, 2019
1 parent 0576df2 commit b79da3d
Show file tree
Hide file tree
Showing 4 changed files with 446 additions and 0 deletions.
14 changes: 14 additions & 0 deletions app/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const express = require('express');
const app = express();
const path = require('path');
let home_page = path.join(__dirname, 'static', 'index.html');
app.get('/', (req, res) => {
console.log(`\t[+]Incoming request from --- ${req.ip}`);
res.status(200).contentType('html').sendFile(home_page, (err) => {
if (err)
console.log(`\t\t[!]${err}`); // denotes error
});
});
app.listen(8001, '0.0.0.0', () => {
console.log('[+]Mapping Application Server listening at - `0.0.0.0: 8001`\n');
});
358 changes: 358 additions & 0 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b79da3d

Please sign in to comment.