blob: 551ed48622074ab5c303a00306224f7f412304f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
//
// ~~~ server process
//
// imports
import app from "./app.ts"
import init from "@lib/init.ts"
import loadDotenv from "@lib/dotenv.ts"
// setup app
const dotenv = loadDotenv()
const PORT = dotenv?.HC_PORT || 3000
init()
// start app
app.listen(PORT, () => {
console.log(`=> starting homecontrol on port ${PORT}`)
})
|