Showing
1 changed file
with
10 additions
and
0 deletions
app.js
0 → 100644
1 | +var express = require('express'); | ||
2 | +var app = express(); | ||
3 | +var server = app.listen(3000,function(){ | ||
4 | + console.log("Express server has started on port 3000") | ||
5 | +}) | ||
6 | + | ||
7 | +app.get('/',function(req,res){ | ||
8 | + res.send("hello"); | ||
9 | + // res.sendFile('index.html', { root: __dirname }); | ||
10 | +}); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment