Motobai is a small, independent business focused on selling motor parts — with a strong emphasis on oils and lubricants that keep engines running at peak performance. Our goal is to provide dependable, accessible automotive supplies for local workshops and internal operations.
This internal-use application is built to support and streamline Motobai's day-to-day workflows. Designed for use by our employees, it offers an efficient and user-friendly interface for managing inventory, tracking orders, and monitoring product data.
| Name | Role |
|---|---|
| Jose Emmanuel Idpan | Backend Developer (Django) |
| Ram Christian Nacar | Frontend Developer (React) |
| Thaddeus Domingo | Quality Assurance & Project Management |
- Built with React (frontend) and Django (backend)
- RESTful API integration for smooth data flow
- JWT Authentication and user role support
- Real-time inventory management
- Order tracking and status updates
- Modular design for future scalability
Install these before proceeding:
- Node.js
- VS Code
- Python 3.8+
- MySQL — install both MySQL Server and MySQL Workbench, set the root password to
root
git clone <this link>cd frontend
npm installCreate a file named .env inside the frontend/ folder with the following content:
VITE_API_URL="http://127.0.0.1:8000"
⚠️ Use127.0.0.1and notlocalhost— the browser treats them as different origins and CORS will block requests if you uselocalhost.
cd backend
pip install PyMySQL
pip install -r requirements.txtOpen backend/backend/__init__.py (create it if it doesn't exist) and add:
import pymysql
pymysql.install_as_MySQLdb()Open MySQL Workbench, connect to your local server, and create a database named motobai:
CREATE DATABASE motobai;cd backend
python manage.py makemigrations
python manage.py migrateIf a SQL dump file is provided (e.g. motobai_dump.sql), import it via MySQL Workbench after running migrations in step 7. Migrations must run first to create the tables.
Terminal 1 — Frontend:
cd frontend
npm run devTerminal 2 — Backend:
cd backend
python manage.py runserverThen open your browser and go to: http://localhost:5173
Add Python to your system PATH: https://datatofish.com/add-python-to-windows-path/
Reinstall or repair pip: https://pip.pypa.io/en/stable/installation/
This is a known Windows build issue. Use PyMySQL instead (already covered in step 4–5 above). Do not try to install mysqlclient directly on Windows without MySQL C headers.
Make sure your .env uses http://127.0.0.1:8000 and not http://localhost:8000. Restart the frontend after changing .env.
Open backend/backend/settings.py and set:
USE_TZ = FalseThen restart the Django server.
Open backend/backend/settings.py and update the password to match what you set during MySQL installation:
DATABASES = {
'default': {
...
'PASSWORD': 'your_password_here',
...
}
}At Motobai, we believe that a well-oiled system is just as important as a well-oiled machine.