Complete step-by-step installation instructions for Equai AI.
Before installing Equai AI, ensure you have the following installed on your system:
-
Python 3.8 or higher
- Download from: https://www.python.org/downloads/
- During installation, check "Add Python to PATH"
- Verify installation: Open command prompt and run
python --version
-
Node.js 16 or higher
- Download from: https://nodejs.org/
- Install LTS (Long Term Support) version
- Verify installation: Run
node --versionandnpm --version
-
Internet Connection
- Required for MongoDB Atlas connection
- Required for downloading dependencies
- Git for version control
- VS Code or any code editor
- Modern web browser (Chrome, Firefox, Edge)
Open Command Prompt or PowerShell and navigate to the Equai AI folder:
cd C:\Users\SHIRUH\OneDrive\Desktop\EquaAIcd backend
python -m pip install flask flask-cors sympy matplotlib numpy pymongo python-dotenv dnspythoncd backend
python -m pip install -r requirements.txtExpected Output:
Collecting flask...
Collecting sympy...
...
Successfully installed flask-3.0.0 sympy-1.12 matplotlib-3.8.2 ...
python -c "import flask, sympy, matplotlib; print('All packages installed successfully!')"Open a new command prompt/terminal window:
cd C:\Users\SHIRUH\OneDrive\Desktop\EquaAI\frontend
npm installExpected Output:
npm install
added 200 packages...
Note: This may take 2-5 minutes depending on your internet speed.
npm list react vite tailwindcssShould show installed versions of React, Vite, and Tailwind.
The .env file in the backend folder is already configured with MongoDB connection:
File: backend/.env
MONGODB_URI=mongodb+srv://nthigacharles2_db_user:cjzdyA5EXA0SC8Kj@cluster0.v6xblzm.mongodb.net/?appName=Cluster0
DATABASE_NAME=equai_db
FLASK_ENV=development
PORT=5000
No changes needed - MongoDB Atlas is already configured!
Double-click: start-all.bat
This will:
- β Start the backend server on port 5000
- β Start the frontend on port 5173
- β Open both in separate command windows
cd C:\Users\SHIRUH\OneDrive\Desktop\EquaAI\backend
python app.pyExpected Output:
Starting Equai AI Backend Server...
Successfully connected to MongoDB
* Running on http://0.0.0.0:5000
Leave this terminal running!
Open a new terminal window:
cd C:\Users\SHIRUH\OneDrive\Desktop\EquaAI\frontend
npm run devExpected Output:
VITE v5.x.x ready in xxx ms
β Local: http://localhost:5173/
β Network: use --host to expose
Leave this terminal running too!
- Open your web browser
- Navigate to: http://localhost:5173
- You should see: The Equai AI interface with the header, input area, and tips section
Open: http://localhost:5000/health
Expected Response:
{
"status": "healthy",
"service": "Equai AI Backend",
"version": "1.0.0"
}- In the web interface, select Algebra
- Enter:
x^2 - 4 = 0 - Click Solve Problem
- You should see:
- Solution: x = -2, x = 2
- Step-by-step explanation
- Verification of solutions
- Select Graph
- Enter:
sin(x) - Click Solve Problem
- You should see:
- Function analysis
- Beautiful graph visualization
- Critical points and intercepts
- Select Calculus
- Select Derivative operation
- Enter:
x^3 + 2*x^2 - Click Solve Problem
- You should see:
- Derivative result
- Power rule explanation
- Step-by-step derivation
Solution:
- Add Python to PATH during installation
- Or reinstall Python with "Add to PATH" checked
- Restart command prompt after installation
Solution:
- Reinstall Node.js
- Restart command prompt
- Verify with
node --version
Solution:
cd backend
python -m pip install --upgrade pip
python -m pip install -r requirements.txtSolution:
cd frontend
rm -rf node_modules
rm package-lock.json
npm installBackend (5000):
# Find process using port
netstat -ano | findstr :5000
# Kill the process
taskkill /PID <process_id> /FFrontend (5173):
# Find process
netstat -ano | findstr :5173
# Kill the process
taskkill /PID <process_id> /FCheck:
- Internet connection is active
- MongoDB URI in
.envis correct - No firewall blocking MongoDB Atlas
Test Connection:
cd backend
python -c "from database import db; print('MongoDB connected!')"Solutions:
- Verify Matplotlib is installed:
python -c "import matplotlib; print('OK')" - Check if
static/graphsfolder exists in backend - Create it manually if needed:
cd backend mkdir static mkdir static\graphs
Solution:
- Ensure flask-cors is installed
- Check backend is running on port 5000
- Frontend API URL in
src/services/api.jsshould behttp://localhost:5000/api
- OS: Windows 10, macOS 10.14+, or Linux
- RAM: 4 GB
- Disk Space: 500 MB
- Python: 3.8+
- Node.js: 16+
- OS: Windows 11, macOS 12+, or Ubuntu 22.04+
- RAM: 8 GB
- Disk Space: 1 GB
- Python: 3.10+
- Node.js: 18+ LTS
- Internet: Broadband connection
cd backend
python -m pip install --upgrade -r requirements.txtcd frontend
npm updateIn the backend terminal, press Ctrl + C
In the frontend terminal, press Ctrl + C
Simply close both command windows that opened.
- Python installed and accessible
- Node.js and npm installed
- Backend dependencies installed
- Frontend dependencies installed
- Backend server starts successfully
- Frontend server starts successfully
- Can access http://localhost:5173
- Backend health check returns "healthy"
- Can solve an algebra problem
- Can generate a graph
- Can perform calculus operations
- MongoDB connection working
After successful installation:
- Read the Quick Start Guide:
QUICKSTART.md - Try example problems from the documentation
- Explore the UI features
- Check the Project Summary:
PROJECT_SUMMARY.md - Start solving your own math problems!
Backend Logs:
- Displayed in backend terminal
- Look for error messages or stack traces
Frontend Logs:
- Open browser Developer Tools (F12)
- Check Console tab for errors
- Check Network tab for failed requests
| Error | Cause | Solution |
|---|---|---|
ModuleNotFoundError |
Missing Python package | Run pip install <package> |
ENOENT |
Missing Node modules | Run npm install |
Port already in use |
Port occupied | Kill process or change port |
MongoDB connection failed |
Network/config issue | Check internet and .env file |
404 Not Found |
Backend not running | Start backend server |
You've successfully installed Equai AI when you can:
β Start both backend and frontend servers β Access the web interface at localhost:5173 β Solve an algebra problem and see steps β Generate a graph visualization β Perform calculus operations β See detailed explanations for each step
You've successfully installed Equai AI!
Now you can:
- Solve any algebra problem
- Compute derivatives and integrals
- Visualize functions with graphs
- Learn math with step-by-step explanations
Enjoy your math journey with Equai AI! β¨
Need more help? Check out:
README.md- Project overviewQUICKSTART.md- Usage guidePROJECT_SUMMARY.md- Technical details