https://github.com/govtechsg/fight-club-fe
Frontend Repository for Fight Club application
https://github.com/govtechsg/fight-club-fe
Last synced: 25 days ago
JSON representation
Frontend Repository for Fight Club application
- Host: GitHub
- URL: https://github.com/govtechsg/fight-club-fe
- Owner: GovTechSG
- License: mit
- Created: 2018-04-23T01:58:51.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-07-19T10:00:02.000Z (about 1 year ago)
- Last Synced: 2025-10-19T21:48:21.158Z (10 months ago)
- Language: JavaScript
- Size: 5.61 MB
- Stars: 0
- Watchers: 22
- Forks: 1
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#README
This is the frontend web server (express) project for Fight Club.
To run it:
```
npm install
cd public
npm install
cd ..
npm start
```
#Environment Variables
This frontend is a User Interface for the Fight Club application. Environment variables are used to direct this UI to communicate with a specified Fight Club application server using the following env vars:
- GAME_SERVER_HOST
- GAME_SERVER_PROTOCOL
- GAME_SERVER_PORT
- GAME_SERVER_CONNECTION_METHOD
Example
```
GAME_SERVER_HOST: url.to.my.host
GAME_SERVER_PROTOCOL: http
GAME_SERVER_PORT: 3000
GAME_SERVER_CONNECTION_METHOD: poll
```
Tip: If you are running a container to host this express server, you can use the -e option to inject these environment variables.