Introduce DbAdapter (#61)

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov
2021-08-25 19:55:26 +02:00
committed by GitHub
parent 3c7495764a
commit 4f4a772630
11 changed files with 118 additions and 106 deletions
+3 -2
View File
@@ -15,7 +15,8 @@
//
import { start as startJsonRpc } from '@anticrm/server-ws'
import { createStorage } from '@anticrm/dev-storage'
import { createInMemoryAdapter } from '@anticrm/dev-storage'
import { createServerStorage } from '@anticrm/server-core'
import { addLocation } from '@anticrm/platform'
import { serverChunterId } from '@anticrm/server-chunter'
@@ -26,5 +27,5 @@ import { serverChunterId } from '@anticrm/server-chunter'
export async function start (port: number, host?: string): Promise<void> {
addLocation(serverChunterId, () => import('@anticrm/server-chunter-resources'))
startJsonRpc(() => createStorage(), port, host)
startJsonRpc(() => createServerStorage(createInMemoryAdapter, '', ''), port, host)
}