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 -- --open
To create a production version of the app:
npm run build
This will create a build
directory containing the app. As the server uses adapter-node, you can run the app with:
node socket-server
socket-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.js
and simply use theDockerfile
for containerized deployment.