mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-16 09:54:41 +00:00
* lint - import/no-relative-parent-imports fix build error * fix md * lint import/order enabled rule import/order and fixed impot order in each file
12 lines
477 B
TypeScript
12 lines
477 B
TypeScript
import CONFIG from './config'
|
|
import createServer from './server'
|
|
|
|
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}`)
|
|
})
|