chore: setup featherjs project

This commit is contained in:
Elias Renman
2023-05-20 09:18:45 +02:00
parent ab69ce119a
commit 0040dc6384
26 changed files with 762 additions and 0 deletions

11
server/src/index.ts Normal file
View File

@@ -0,0 +1,11 @@
import { app } from './app'
import { logger } from './logger'
const port = app.get('port')
const host = app.get('host')
process.on('unhandledRejection', (reason) => logger.error('Unhandled Rejection %O', reason))
app.listen(port).then(() => {
logger.info(`Feathers app listening on http://${host}:${port}`)
})