A 3D, interactive N-body simulation that runs in web browsers. This program leverages GPU acceleration through WebGL (for both graphics and computation) to deliver ultra fast performance! Runs best on computers with a discreet GPU.
- Install Node.JS. You can verify your Node.JS version by running
node -v
. - Install Python 2. You can verify your Python version by running
python --version
. - Optional: If you are running Windows and don't have Visual Studio installed, you will need to install windows-build-tools using
npm install -g --production windows-build-tools
- Clone the project and navigate into the base directory
- Run
npm install
to install dependencies - Run
npm run build
to build the project - Run
npm start
to launch node - Open your browser to localhost:3000
Open another terminal instance and run npm run watch
. This will watch the interface files for changes and recompile on the fly.
If you encounter this error on Windows: Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime
when performing the npm run build
step, run the following command to rebuild node-sass: npm rebuild node-sass
. Ensure you either have Visual Studio or windows-build-tools installed when doing this.