[Added] Ability to serve the project using nginx on localhost:4600

This commit is contained in:
Ninjaws
2024-12-19 22:40:59 +01:00
parent c0bfe9bd13
commit 33f6504b6c
10 changed files with 220 additions and 121 deletions
+38 -1
View File
@@ -1,2 +1,39 @@
# WebJelly-Rescue
Jelly Rescue, but now for the web!
[Jelly Rescue](https://github.com/Ninjaws/JellyGame), but now for the web!
## Installation
### Install Docker
- On Windows and Mac
```
Install Docker Desktop
Windows: https://docs.docker.com/desktop/install/windows-install/
Mac: https://docs.docker.com/desktop/install/mac-install/
```
- On Linux
```bash
# For Debian-based systems
sudo apt install -y docker.io
sudo apt install docker-compose
#For Arch-based systems
sudo pacman -S docker.io
sudo pacman -S docker-compose
# Making Docker run now and on startup
sudo systemctl start docker
sudo systemctl enable docker
# Using the CLI without sudo
sudo usermod -aG docker $USER
sudo reboot
```
## How to run
- Navigate to the root of the project
- Open a terminal
- Start the container:
```bash
docker compose up #(might take a few minutes to build)
```
- Visit https://localhost:4600 to play the game locally
- Or visit play it live [here!](https://jelly.ianvink.nl)