mirror of
https://github.com/barkeser2002/ddrive.git
synced 2026-09-25 05:10:01 +03:00
modified: .gitignore new file: .npmignore new file: LICENSE modified: Procfile modified: README.md modified: bin/ddrive.js new file: config/.env_sample
15 lines
403 B
JavaScript
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()
|