{"id":19712701,"url":"https://github.com/evgenyneu/two_galaxies","last_synced_at":"2025-04-29T18:30:59.425Z","repository":{"id":142922076,"uuid":"279526135","full_name":"evgenyneu/two_galaxies","owner":"evgenyneu","description":"A web simulation of two interacting galaxies","archived":false,"fork":false,"pushed_at":"2020-11-29T03:14:52.000Z","size":4465,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T18:52:05.607Z","etag":null,"topics":["astronomy","science","simulation"],"latest_commit_sha":null,"homepage":"https://evgenii.com/blog/two-galaxies/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evgenyneu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-07-14T08:22:39.000Z","updated_at":"2024-10-08T07:15:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"f11cb77e-b307-45c5-bf38-2f6aaaeeed99","html_url":"https://github.com/evgenyneu/two_galaxies","commit_stats":{"total_commits":267,"total_committers":2,"mean_commits":133.5,"dds":"0.11610486891385763","last_synced_commit":"a77381b208fcc0327b9b4d19ecb2daefdb9a1f27"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evgenyneu%2Ftwo_galaxies","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evgenyneu%2Ftwo_galaxies/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evgenyneu%2Ftwo_galaxies/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evgenyneu%2Ftwo_galaxies/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evgenyneu","download_url":"https://codeload.github.com/evgenyneu/two_galaxies/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251559786,"owners_count":21609074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["astronomy","science","simulation"],"created_at":"2024-11-11T22:18:03.315Z","updated_at":"2025-04-29T18:30:57.420Z","avatar_url":"https://github.com/evgenyneu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simulation of two interacting galaxies\n\nThis is a simulation of two interacting galaxies, written in HTML, CSS and JavaScript:\n\n[https://evgenii.com/blog/two-galaxies/](https://evgenii.com/blog/two-galaxies/)\n\n![Two galaxies simulation](https://github.com/evgenyneu/two_galaxies/raw/master/images_docs/two_galaxies.jpg)\n\n\n## Run the simulation locally\n\nTo run the simulation on your computer, first download this repository (Git needs to be installed):\n\n```\ngit clone https://github.com/evgenyneu/two_galaxies.git\n```\n\nThen change into the `two_galaxies` directory:\n\n```\ncd two_galaxies\n```\n\nNext, 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:\n\n\n### Option 1: run a Python web server\n\nInstall Python and then run\n\n```\npython -m http.server\n```\n\nView the simulation in a web browser at [http://0.0.0.0:8000](http://0.0.0.0:8000).\n\n\n### Option 2: run a Node.js web server\n\nInstall the server\n\n```\nnpm install http-server -g\n```\n\nRun:\n\n```\nhttp-server\n```\n\nView the simulation in a web browser at [http://127.0.0.1:8080](http://127.0.0.1:8080).\n\n\n## Running unit tests\n\nOpen `/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](http://0.0.0.0:8000/test)\n\n## The ammonite 🦑[[link]](https://evgenii.com/files/2020/08/two_galaxies/?numberOfRings=63%2C0\u0026masses=1%2C1\u0026minimalGalaxySeparation=66.48\u0026eccentricity=0.6\u0026ringSeparation=3\u0026ringMultiplier=8\u0026galaxyInclinationAnglesDegree=184%2C115\u0026rotationMatrix=-0.98%2C-0.07%2C-0.09%2C0%2C0.07%2C-0.99%2C0.11%2C0%2C-0.1%2C0.1%2C0.98%2C0%2C0%2C0%2C0%2C1\u0026cameraDistance=431.49)\n\n![The ammonite](https://github.com/evgenyneu/two_galaxies/raw/master/images_docs/ammonite.jpg)\n\n\n\n## The unlicense\n\nThis work is in [public domain](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevgenyneu%2Ftwo_galaxies","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevgenyneu%2Ftwo_galaxies","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevgenyneu%2Ftwo_galaxies/lists"}