Interactive Calculator is an innovative web application that enables users to draw complex equations, problems, or diagrams on a canvas and receive real-time solutions using the power of AI. This project leverages ReactJS and Tailwind CSS on the frontend and Python for backend processing, with integration of Gemini AI for deep analysis and solution generation.
These instructions will help you set up and run the project on your local machine for development and testing purposes.
git clone https://github.com/yourusername/interactive-calculator.git
cd interactive-calculator
Navigate to the frontend
directory and install dependencies.
cd frontend
npm install
Navigate to the backend
directory, set up a virtual environment, and install dependencies.
cd backend
python -m venv venv
source venv/bin/activate # For Windows use `venv\Scripts\activate`
pip install -r requirements.txt
Add your Gemini API key to the environment file:
echo "GEMINI_API_KEY=your_api_key_here" > .env
Frontend: In the frontend directory, start the React app.
npm start
Backend: In the backend directory, run the Python server.
python app.py
The application should now be running at http://localhost:3000
with the backend server handling requests.
The project is divided into two main directories: frontend
and backend
.
interactive-calculator/
├── frontend/ # ReactJS + Tailwind CSS frontend
│ ├── public/
│ └── src/
│ ├── components/ # Reusable UI components
│ ├── hooks/ # Custom hooks for state management
│ └── utils/ # Helper functions and utilities
│
└── backend/ # Python backend
├── api/ # API routes and controllers
├── models/ # Data models and Gemini AI integration
└── utils/ # Helper functions
This structure maintains modularity and reduces the load on each request cycle, ensuring a scalable, efficient architecture.
We welcome contributions! Please follow these steps:
git checkout -b feature/YourFeature
.git commit -am 'Add new feature'
.git push origin feature/YourFeature
.For questions or support, please contact Ayesha Ashfaq
.