- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver.js
More file actions
Latest commit
12 lines (10 loc) · 364 Bytes
/
Copy pathserver.js
File metadata and controls
12 lines (10 loc) · 364 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
varexpress=require('express');
varport=process.env.PORT||3000;//put your preferred port number
varapp=express();
varUserController=require("./Controller/UserController");
//for routing
app.use('/',UserController);
app.use('/',express.static('pages'));
app.listen(port,()=>{
console.log('Server started! At http://localhost:'+port);
});