From bbd2a23363bef82d808bbb36e44f8542ced75032 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Thu, 8 Feb 2024 18:21:48 +0400 Subject: [PATCH] Updated Run FMG locally (markdown) --- Run-FMG-locally.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Run-FMG-locally.md b/Run-FMG-locally.md index 4a1e8df..920294a 100644 --- a/Run-FMG-locally.md +++ b/Run-FMG-locally.md @@ -3,7 +3,10 @@ To run the Generator locally you need to download its files and start a local we ## Download Open [Releases](https://github.com/Azgaar/Fantasy-Map-Generator/releases) page, select the latest available version and click on _Source code (zip)_. Unzip _all files_ from the downloaded archive. -## Run a server +## JS Server +If you are a developer you probably don't want to restart the server manually each time you make a change to the code. So you need a web-server with live reload feature. If you are VS Code user, I recommend to install the [Live Server](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer) extension. It runs a local server in one click and automatically restarts it on file save. + +## Python server The easiest way to run a local web-server is to use Python's `http.server` module. 1. Install Python. If you are using Linux or macOS, it should be available on your system already. If you are a Windows user, you can get an installer from the [Python homepage](https://www.python.org/downloads). On the first installer page, make sure you check the "Add Python 3.xxx to PATH" checkbox. @@ -11,6 +14,3 @@ The easiest way to run a local web-server is to use Python's `http.server` modul 2. If you are Windows user, run the `run_python_server.bat` file in the Fantasy Map Generator folder. It will start the web-server and automatically open the Application in Chrome. You can edit the `.bat` file in any text editor if you want to use a different browser or host. 3. For other systems open the terminal and print a `python -m http.server 8000` command. Then open `http://localhost:8000/` in browser. - -## Development -If you are a developer you probably don't want to restart the server manually each time you make a change to the code. So you need a web-server with live reload feature. If you are VS Code user, I recommend to install the [Live Server](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer) extension. It run a local server in one click and automatically restarts it on file save. \ No newline at end of file