mirror of
https://github.com/standardnotes/server
synced 2026-10-15 15:13:39 -04:00
17 lines
438 B
TypeScript
17 lines
438 B
TypeScript
import { HomeServer } from '../src/Server/HomeServer'
|
|
|
|
const homeServer = new HomeServer()
|
|
|
|
Promise.resolve(
|
|
homeServer.start({
|
|
dataDirectoryPath: `${__dirname}/../data`,
|
|
logStreamCallback: (chunk: Buffer) => {
|
|
// eslint-disable-next-line no-console
|
|
console.log(chunk.toString())
|
|
},
|
|
}),
|
|
).catch((error) => {
|
|
// eslint-disable-next-line no-console
|
|
console.log(`Could not start server: ${error.message}`)
|
|
})
|