Skip to content

szunami/bric-a-brac

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bric-a-brac

Overview

a screenshot of bric-a-brac

bric a brac is a 2 player variant of the atari classic breakout built using Hathora.

Running locally

To run locally:

HATHORA_APP_ID=<appId>
HATHORA_APP_SECRET=<appSecret>
DEVELOPER_TOKEN=<appToken>
  • Start server: inside server directory run npm start (remember to npm install first)
  • Start client: inside client directory run npm start (remember to npm install first)

Deploying

Server:

  • Run hathora-cloud deploy --appId <appId> --roomsPerProcess 1 --planName tiny --transportType tls --containerPort 4000 --env '[{"name": "DEVELOPER_TOKEN", "value": "<appToken>"}]'

Client:

  • cd to common and run npm install && npx tsc
  • Then cd to client and npm run build
  • Now you can deploy dist to any CDN like Vercel or Netlify

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 93.3%
  • CSS 3.2%
  • JavaScript 2.4%
  • Other 1.1%