index.js 487 Bytes
Newer Older
cicd's avatar
cicd committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
'use strict'
var nconf = require('nconf');
nconf.argv()
    .env()
    .file({ file: './app/config/config.json' });
const express = require('express')
var nconf = require('nconf');
var bodyParser = require('body-parser');
var port = 3000;
var app = express();
app.use(bodyParser.json({ type: "application/json", limit: "50mb" }));
require('./app/route')(app);
const server = app.listen(port, function () {
    console.log("Server listen on port: " + port);
})

module.exports =  server;