forked from UXPin/adele
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver.js
More file actions
Latest commit
15 lines (11 loc) · 342 Bytes
/
Copy pathserver.js
File metadata and controls
15 lines (11 loc) · 342 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
constexpress=require('express');
constpath=require('path');
constport=process.env.PORT||8080;
constapp=express();
app.use(express.static(__dirname));
app.get('*',(req,res)=>{
res.sendFile(path.resolve(__dirname,'./build/index.html'));
});
app.listen(port,()=>{
console.log(`App is running on port ${port}`);
});