This is a simulation of two interacting galaxies, written in HTML, CSS and JavaScript:
https://evgenii.com/blog/two-galaxies/
To run the simulation on your computer, first download this repository (Git needs to be installed):
git clone https://github.com/evgenyneu/two_galaxies.git
Then change into the two_galaxies
directory:
cd two_galaxies
Next, start a web server. You can use any web server to run the web site locally. Bellow are examples of using Python and Node.js:
Install Python and then run
python -m http.server
View the simulation in a web browser at http://0.0.0.0:8000.
Install the server
npm install http-server -g
Run:
http-server
View the simulation in a web browser at http://127.0.0.1:8080.
Open /test
URL path to run the JavaScript unit tests. For example, if you used the Python web server, open http://0.0.0.0:8000/test
The ammonite 🦑[link]
This work is in public domain.