-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
24 lines (21 loc) · 662 Bytes
/
app.js
File metadata and controls
24 lines (21 loc) · 662 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**
* Created by Vk on 21/3/2017.
*/
/**
* Created by hmspl.
*/
// Import Common Component
var express = require('express');
var http = require('http');
var app = express();
var path = require('path');
//Create and setup environments our expitemDesress application
app.set('port', process.env.PORT || 1121);
app.use(express.static(path.join(__dirname, '')));
app.get('*', function(req, res) {
res.sendFile(path.join(__dirname, './', 'index.html'));
});
// will RemoveHappy Mornings(F) node_modules in static routes .
http.createServer(app).listen(app.get('port'), function() {
console.log('Express server listening on port ' + app.get('port'));
});