An open API service indexing awesome lists of open source software.

https://github.com/benny-n/hangoff

The classic `hangman` game as a web application.
https://github.com/benny-n/hangoff

hangman hangman-game react vercel webapp

Last synced: 5 months ago
JSON representation

The classic `hangman` game as a web application.

Awesome Lists containing this project

README

          


Hangoff



Your good old hangman game, with a new word each day, in the browser!


Multiplayer mode - coming soon


[![CI](https://github.com/benny-n/hangoff/actions/workflows/ci.yml/badge.svg)](https://github.com/benny-n/hangoff/actions/workflows/ci.yml)
![LICENSE](https://img.shields.io/github/license/benny-n/hangoff)
[![HOMEPAGE](https://img.shields.io/badge/https-hangoff.vercel.app-blueviolet)](https://hangoff.vercel.app)


# Development In Docker

```bash
$ docker build -t hangoff:app-dev -f hangoff-app/dev.Dockerfile ./hangoff-app
```

Build the server image using the following command

```bash
$ docker build -t hangoff:server-dev -f hangoff-server/dev.Dockerfile ./hangoff-server
```

Run development containers using the command shown below.
*Note that development environment requires local dependencies has to be installed*
```bash
$ docker-compose -f dev.docker-compose.yml up -d
```

# Production In Docker

Build the app image using the following command

```bash
$ docker build -t hangoff:app -f hangoff-app/Dockerfile ./hangoff-app
```

Build the server image using the following command

```bash
$ docker build -t hangoff:server -f hangoff-serverDockerfile ./hangoff-server
```

Run production containers using the command shown below.

```bash
$ docker-compose up -d
```

## Environment Variables

| Variable | Default Value |
| ------ | ------ |
| SERVER_PORT | 5545 |
| VOCABULARY_URI | |

**Please Make Sure to run DB container as well and also the netwrok is the same docker network**