This repository contains a game! Using a React frontend and a Flask backend.
- banana/: React Frontend application (created with Create React App).
- flask-server/: Flask Backend API.
Ensure you have the following installed:
- Node.js & npm (for the frontend)
- Python 3 & pip (for the backend)
You will need to run two separate terminal sessions: one for the backend and one for the frontend.
Open your first terminal and navigate to the server directory:
cd flask-serverIt is recommended to use a virtual environment:
# Create virtual environment
python3 -m venv venv
# Activate it (Linux/Mac)
source venv/bin/activate
# OR Activate it (Windows)
# venv\Scripts\activateInstall the required packages (if you haven't already):
pip install -r requirements.txtRun the server:
python3 app.pyThe backend will start at http://localhost:5000.
Open a new terminal window (keep the previous one running) and navigate to the frontend directory:
cd bananaInstall the Node dependencies:
npm installStart the React development server:
npm startThe frontend will open at http://localhost:3000.
ADD .env FILE WITH HOST=0.0.0.0 PORT=3000 to get multiplayer GOOD LUCK