We have moved to this group repository!. This repository will no longer getting updates for the time being.
An object color solid renderer built with React and TypeScript, using Vite as the build tool.
- Node.js and npm (or yarn) installed for the frontend.
- Python installed for the backend.
-
Clone the Repository
git clone https://github.com/ZackooObjectColorSolidRenderer cd ObjectColorSolidRenderer
-
Backend Setup (Flask)
- Navigate to the backend directory:
cd backend
- Create and activate a virtual environment (recommended):
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
- Install Python dependencies:
pip install Flask Flask-Cors numpy PyWavefront
- Run the Flask app:
python app.py
- Navigate to the backend directory:
-
Frontend Setup (React with Vite)
- Navigate to the frontend directory:
cd ../frontend
- Install Node.js dependencies:
npm install # or yarn install
- Start the development server:
npm run dev # yarn dev
- Navigate to the frontend directory:
- The React frontend will be running on
http://localhost:5173
(default Vite port). - The Flask backend will be running on
http://localhost:5000
.
- Ensure both servers are running simultaneously for full functionality.
- The frontend is built with React and TypeScript, using Vite as the build tool.
- The project uses Yarn for package management, but npm can be used as an alternative.
- CORS should be enabled in the Flask app to allow requests from the frontend.
- Frontend code is located in the
frontend/src
directory. - The main backend logic is in
backend/app.py
. - Experimental code is in
thoery/
directory.