Ethermap collaborative map tool inspired by etherpad.
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.
 
 
 

18 lines
395 B

import App from './backend/express.js'
import ViteExpress from 'vite-express'
import 'dotenv/config'
import { Socket } from './backend/sockets.js'
import { Server } from 'socket.io'
const server = App.listen(process.env.PORT, () => {
console.log(`Ethermap listening for connections on port ${process.env.PORT}`)
})
const io = new Server(server)
ViteExpress.bind(App, server)
Socket(io)