Ping Pong - is a replica of the computer game which was developed for Atari computers by Allan Alcorn in 1970. It's a web-oriented network game, thus you need a second player on any other desktop PC or laptop.
Demo: 188.225.84.218:81
Server: Bun with its WebSockets API, TypeScript.
Frontend: Vue 3 (Composition API), TypeScript, SCSS.
# intalling bun runtime globally
npm i -g bun
# in root derictory of the project
bun index.ts
# with using pm2
export NPM_GLOBALS_PATH=$(npm root -g)/bun/bin/bun
pm2 start --interpreter $NPM_GLOBALS_PATH index.ts
Build for frontend deployment is placed on: <project root>/frontend/dist/
. Use nginx or any other web-server.
Building:
# in frontend directory
bun run build
# installing bun runtime globally
npm i -g bun
# using bun with watch mode
bun dev
# in root-project directory
cd frontend
bun dev