You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
395 B
19 lines
395 B
1 year ago
|
import App from './backend/express.js'
|
||
|
import ViteExpress from 'vite-express'
|
||
1 year ago
|
import 'dotenv/config'
|
||
|
|
||
1 year ago
|
import { Socket } from './backend/sockets.js'
|
||
1 year ago
|
import { Server } from 'socket.io'
|
||
|
|
||
1 year ago
|
|
||
1 year ago
|
const server = App.listen(process.env.PORT, () => {
|
||
|
console.log(`Ethermap listening for connections on port ${process.env.PORT}`)
|
||
|
})
|
||
|
|
||
1 year ago
|
const io = new Server(server)
|
||
|
|
||
|
ViteExpress.bind(App, server)
|
||
1 year ago
|
|
||
|
Socket(io)
|
||
1 year ago
|
|