Skip to content

Latest commit

 

History

History
49 lines (29 loc) · 1.46 KB

README.md

File metadata and controls

49 lines (29 loc) · 1.46 KB

2048 game

Badge

Let's play 2048 game in a browser!

💡 This is a hard fork of gabrielecirulli/2048 which hasn't been updated since 2017.

Quickstart with a container

If you have a container engine running, you can start right away with the image:

docker run --rm -p 8080:80 ghcr.io/suse/game-2048

Open the web application and enjoy the game!

Deploy in an environment

The recommanded way to run the application is to deploy in a Kubernetes cluster with with the Helm chart.

Update the application

If you want to modify the CSS, edit the SCSS files present in style/: main.scss and others. Don't edit the main.css, because it's supposed to be generated.

In order to compile your SCSS modifications, you need to use the sass gem (install it by running gem install sass once Ruby is installed). To run SASS, simply use the following command:

sass --unix-newlines --watch style/main.scss

SASS will automatically recompile your css when changed.

Run from the sources

Build a new image:

docker build . -t game-2048 --no-cache

Start a container:

docker run --rm -p 8080:80 game-2048

Open localhost:8080 et enjoy 😁