Getting Started
Follow these instructions to set up and run the project locally.
Prerequisites
- Python 3.11+
- MySQL or MariaDB
- Node.js & npm
Installation
Backend Setup
-
Create a virtual environment:
python3 -m venv venv
source venv/bin/activate
-
Install Python dependencies:
pip3 install -r requirements.txt
-
Configure the database: Make sure MySQL is running. Create a database named package_tracking (see Database Setup).
-
Run the backend:
uvicorn app.main:app --reload
-
Backend links:
- Backend API: http://localhost:8000
- Backend API Docs: http://localhost:8000/docs
Frontend Setup
- Navigate to frontend directory
cd frontend
-
Install node modules:
npm install
-
Start the frontend:
npm start
- Frontend links:
- Frontend: http://localhost:3000