Skip to content

Latest commit

 

History

History
61 lines (40 loc) · 1.5 KB

README.md

File metadata and controls

61 lines (40 loc) · 1.5 KB

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