Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 918 Bytes

README.md

File metadata and controls

45 lines (36 loc) · 918 Bytes

Coup Online

Play Game

Overview

The frontend is a React web application. The app talks to the backend Express server via the WebSockets protocol, falling back to the HTTPS protocol if the socket connection fails. The game state is stored in a cloud Redis database.

Deployments

Deployments are automated. To deploy a new version of the game, simply create a new Release.

Environment Variables

  • EXPRESS_PORT
  • REDIS_CONNECTION_STRING
  • REACT_APP_API_BASE_URL
  • REACT_APP_SOCKET_SERVER_URL
  • REACT_APP_SOCKET_SERVER_PATH

Running Locally

Run Server

cd server
pnpm i
pnpm dev

Run Client

cd client
pnpm i
pnpm start

Run Server Tests

Server needs to be running for integration tests

cd server
pnpm test

Run Client Tests

cd client
pnpm test