Note: Step 8 below is not mentioned in the video; please follow it as well.
-
Fork the PictoPy repository: https://github.com/AOSSIE-Org/PictoPy
-
Open your terminal (or Powershell with administrator privileges on Windows)
-
Clone your forked repository:
git clone https://github.com/yourUsername/PictoPy
-
Change to the repository directory:
cd PictoPy -
Add the main repository as "upstream":
git remote add upstream https://github.com/AOSSIE-Org/PictoPy
-
Run the Automatic Setup:
npm run setup
The setup script installs the CPU-only
onnxruntimepackage for local development. The release workflow swaps in platform-specific GPU providers, and the onboarding recommendation uses hardware detection rather than ONNX Runtime provider detection.Note: This step can take a long time depending on your internet connection and system specifications. If the script seems to stop progressing after waiting for more than 10 minutes, press Enter in your terminal window to continue.
-
Start the Backend Server:
cd .\backend .env\Scripts\Activate.ps1 fastapi dev --port 52123
cd ./backend source .env/bin/activate fastapi dev --port 52123
-
Start the Sync-Microservice:
Open a new terminal window, navigate to the project directory, and run:
cd .\sync-microservice .sync-env\Scripts\Activate.ps1 fastapi dev --port 52124
cd ./sync-microservice source .sync-env/bin/activate fastapi dev --port 52124
-
Start the Frontend Desktop App:
Open a new terminal window, navigate to the project directory, and run:
cd frontend npm run tauri dev -
Pre-commit Setup:
Before running the
git commitcommand, ensure you have the following Python packages installed globally:pip install ruff black mypy pre-commit
Note: If you are committing from a virtual environment, these packages should already be installed as they are included in the requirements.txt file.