Jonatan Nilsson
098b7e5f14
Some checks reported errors
continuous-integration/appveyor/branch AppVeyor build cancelled
22 lines
No EOL
410 B
JavaScript
22 lines
No EOL
410 B
JavaScript
import fs from 'fs'
|
|
import { ServiceCore } from 'service-core'
|
|
import * as index from './index.mjs'
|
|
|
|
var core = new ServiceCore('nfp_moe', import.meta.url, 4210, '')
|
|
|
|
let config = {
|
|
frontend: {
|
|
url: 'http://localhost:4210'
|
|
}
|
|
}
|
|
|
|
try {
|
|
config = JSON.parse(fs.readFileSync('./config.json'))
|
|
} catch {}
|
|
|
|
config.port = 4210
|
|
|
|
core.setConfig(config)
|
|
core.init(index).then(function() {
|
|
return core.run()
|
|
}) |