Skip to content

Web-version of a classic Ping Pong computer game for desktop screens. Used Vue.js on frontend-side and Bun (WebSockets) on server-side.

Notifications You must be signed in to change notification settings

buravlev-arthur/ping-pong-Bun-WebSockets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maintainability

Ping Pong (Web-version)

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.

image

Demo: 188.225.84.218:81

Stack of technologies

Server: Bun with its WebSockets API, TypeScript.

Frontend: Vue 3 (Composition API), TypeScript, SCSS.

Deployment

Server

# 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

Fontend

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

Development

Server

# installing bun runtime globally
npm i -g bun
# using bun with watch mode
bun dev

Frontend

# in root-project directory
cd frontend
bun dev

About

Web-version of a classic Ping Pong computer game for desktop screens. Used Vue.js on frontend-side and Bun (WebSockets) on server-side.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published