A physics-based simulation playground for creating and visualizing stimuli with red and green sensors.
This site is not ready yet.
This site is not meant for development from others, but in case anybody wants a local build of the red-green playground, here are the instructions.
Before you begin, ensure you have the following installed:
- Conda (for Python environment management)
- Git
- Node.js v23.3.0 and npm 10.9.0 (npm comes bundled with Node.js)
git clone [email protected]:probcomp/red_green_playground.git
cd red_green_playgroundconda create -n playground python=3.11
conda activate playground
pip install -r requirements.txtInstall Node.js v23.3.0 from nodejs.org. npm 10.9.0 comes bundled with Node.js.
Verify installation:
node --version # Should be v23.3.0
npm --version # Should be 10.9.0- Install dependencies:
npm install- Run the build
npm run buildThe website should automatically open in your default browser at http://localhost:3000. If it doesn't, manually open your browser and navigate to that address.
In a new terminal window (while keeping the frontend running):
- Make sure you're in the project root directory and the conda environment is activated:
conda activate playground- Start the Flask server:
python red_green_playground.pyThe backend will run on http://localhost:5001.
When ready, push to Heroku (only for authenticated user --> Arijit)
git push heroku main