- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
Latest commit
18 lines (14 loc) · 393 Bytes
/
Copy pathapp.js
File metadata and controls
18 lines (14 loc) · 393 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
varexpress=require('express'),
config=require('./config/config'),
db=require('./app/models');
varapp=express();
require('./config/express')(app,config);
db.sequelize
.sync()
.then(function(){
app.listen(config.port,function(){
console.log('Express server listening on port '+config.port);
});
}).catch(function(e){
thrownewError(e);
});