-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
41 lines (34 loc) · 926 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
require('dotenv').config();
const logger = require('./libs/logger');
//const bodyParser = require('body-parser');
//const cookieParser = require('cookie-parser');
const { port } = require('./configuration');
const dbSequelize = require('./database');
/*
dbSequelize.lkCityModel.findAll().then(project => {
console.log("projects===",project);
});
*/
//const lk_City = require('./database/entities/lk_City.js')(sequelize);
/*
lk_City.findAll().then(project => {
console.log("projects===",project);
});
/*
lk_City.create({
title: 'Rambow.....'
});*/
/*
lk_City.create({
title: 'Rambow.....'
}).then(tasks => {
console.log(tasks) // no programming, just reading :(
});
*/
const services = require('./services')(dbSequelize);
const app = require('./http')(services);
//app.use(bodyParser.json());
//app.use(cookieParser());
const server = app.listen(port, () => {
logger.info(`Listening on *:${port}`);
});