mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
12 lines
477 B
TypeScript
12 lines
477 B
TypeScript
import createServer from './server'
|
|
import CONFIG from './config'
|
|
|
|
const { server, httpServer } = createServer()
|
|
const url = new URL(CONFIG.GRAPHQL_URI)
|
|
httpServer.listen({ port: url.port }, () => {
|
|
/* eslint-disable-next-line no-console */
|
|
console.log(`🚀 Server ready at http://localhost:${url.port}${server.graphqlPath}`)
|
|
/* eslint-disable-next-line no-console */
|
|
console.log(`🚀 Subscriptions ready at ws://localhost:${url.port}${server.subscriptionsPath}`)
|
|
})
|