Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 877 Bytes

README.md

File metadata and controls

32 lines (20 loc) · 877 Bytes

Pinglet

Pinglet helps you find the closest server for all your friends to connect to.

Developing locally

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

Building

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 the Dockerfile for containerized deployment.