bsky-app/scripts/testing-server.mjs

17 lines
399 B
JavaScript
Raw Normal View History

2022-06-10 18:55:09 +02:00
import {IpldStore} from '@adx/common'
import server from '@adx/server/dist/server.js'
import Database from '@adx/server/dist/db/index.js'
const PORT = 1986
async function start() {
console.log('Initializing...')
const db = Database.memory()
const serverBlockstore = IpldStore.createInMemory()
await db.dropTables()
await db.createTables()
server(serverBlockstore, db, PORT)
}
start()