Pinglet helps you find the closest server for all your friends to connect to.
Clone the project and npm install (or pnpm install or yarn) in the directory. Start a development server with:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --openTo create a production version of the app:
npm run buildThis will create a build directory containing the app. As the server uses adapter-node, you can run the app with:
node socket-serversocket-server/index.js uses the handler.js generated by the build which is suitable for the Express server we are running our server with.
To deploy, build the app to generate the
handler.jsand simply use theDockerfilefor containerized deployment.