Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thiagoesteves/erlgame
Snake Game webserver written in Erlang using cowboy as webserver. there is an aws cloud formation to deploy the game at aws amazon
https://github.com/thiagoesteves/erlgame
aws aws-cloudformation erlang erlang-cowboy erlang-otp game-development gamedev
Last synced: 3 days ago
JSON representation
Snake Game webserver written in Erlang using cowboy as webserver. there is an aws cloud formation to deploy the game at aws amazon
- Host: GitHub
- URL: https://github.com/thiagoesteves/erlgame
- Owner: thiagoesteves
- License: apache-2.0
- Created: 2020-12-14T11:05:03.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-15T12:29:20.000Z (almost 4 years ago)
- Last Synced: 2023-03-17T19:21:44.683Z (almost 2 years ago)
- Topics: aws, aws-cloudformation, erlang, erlang-cowboy, erlang-otp, game-development, gamedev
- Language: Erlang
- Homepage:
- Size: 340 KB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![github workflow](https://github.com/thiagoesteves/erlgame/workflows/Erlgame%20CI/badge.svg)
[![Erlant/OTP Release](https://img.shields.io/badge/Erlang-OTP--26.0-green.svg)](https://github.com/erlang/otp/releases/tag/OTP-26.0)# Game webserver written in Erlang
![Erlgame](/doc/erlgame_snake.png)The app is an example of how Erlang can be used to be part of the Game backend as a server for a single player or multiple players. In this code you will find examples of how to use cowboy webserver, gen_statem (and how to recover from a crash), supervision tree using simple_one_for_one, aws terraform to deploy, common tests, gun to test webserver, etc.
## Getting started ##
You need to clone the repository and download [rebar3](https://rebar3.org/docs/getting-started/) (if it's not already available in your path).
```
git clone https://github.com/thiagoesteves/erlgame.git
cd erlgame
```
To compile and run
```
export PORT=4000
make run
```
Open your web browser, got to http://127.0.0.1:4000/, type your Name and play### Unit Test and coverage
The following command will invoke common test and coverage.
```
make test
```### Deploy at AWS Amazon