Files
barkeser2002 dfcba64886 Changes to be committed:
modified:   .gitignore
	new file:   .npmignore
	new file:   LICENSE
	modified:   Procfile
	modified:   README.md
	modified:   bin/ddrive.js
	new file:   config/.env_sample
2023-01-31 03:29:04 +03:00

15 lines
403 B
JavaScript

const config = require('./config')()
const { DFs, HttpServer } = require('../src')
const startApp = async () => {
const { DFsConfig, httpConfig } = config
// Create DFs Instance
const dfs = new DFs(DFsConfig)
// Create HTTP Server instance
const httpServer = HttpServer(dfs, httpConfig)
return httpServer.listen({ host: '0.0.0.0', port: httpConfig.port })
}
startApp().then()