You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PictoPy is an advanced desktop gallery application that combines the power of Tauri, React, and Rust for the frontend with a Python backend for sophisticated image analysis and management.
4
6
5
7
## Architecture
@@ -55,76 +57,49 @@ Handles file system operations and provides a secure bridge between the frontend
55
57
56
58
## Setup
57
59
58
-
### Frontend Setup
60
+
1. Setup Using Script (Recommended Approach): [Guide](docs/Script_Setup_Guide.md)
Set the public key in tauri.conf.json as pubkey and private key and password in Enviroment Variables as TAURI_SIGNING_PRIVATE_KEY and TAURI_SIGNING_PRIVATE_KEY_PASSWORD
102
+
Set the public key in tauri.conf.json as pubkey and private key and password in Environment Variables as TAURI_SIGNING_PRIVATE_KEY and TAURI_SIGNING_PRIVATE_KEY_PASSWORD
128
103
129
104
There is a preset pubkey in tauri.conf.json ; private key and password for it is:
**Note:** For backend setup make sure that you have Python version 3.12 or lower. Additionally, for Windows, make sure that you are using powershell for the setup, not command prompt.
146
-
147
-
#### Installation Steps
148
-
149
-
1.**Navigate to the Backend Directory:** Open your terminal and use `cd` to change directories:
150
-
151
-
Bash
152
-
153
-
```
154
-
cd backend
155
-
156
-
```
157
-
158
-
2. **Set Up a Virtual Environment (Highly Recommended):** Virtual environments isolate project dependencies. Create one using:
159
-
160
-
Bash(Linux/MacOS)
161
-
162
-
```
163
-
python3 -m venv .env
164
-
165
-
```
166
-
167
-
Powershell(Windows)
168
-
169
-
```
170
-
python -m venv .env
171
-
172
-
```
173
-
174
-
3. **Activate the Virtual Environment:**
175
-
176
-
Bash(Linux/MacOS)
177
-
178
-
```
179
-
source .env/bin/activate
180
-
181
-
```
182
-
183
-
Powershell(Windows)
184
-
185
-
```
186
-
.env\Scripts\activate.ps1
187
-
188
-
```
189
-
190
-
After activating, you should be able to see the virtual environment's name before the current path. Something like this:
4. **Install Dependencies:** The `requirements.txt` file lists required packages. Install them using pip:
195
-
196
-
Bash
197
-
198
-
```
199
-
pip install -r requirements.txt
200
-
201
-
```
202
-
203
-
5. **Missing System Dependencies:** Some dependencies might need system-level libraries like `libGL.so.1` (often needed by OpenCV). Install the appropriate packages based on your distribution:
**Other Systems:** Consult your distribution's documentation for installation instructions.
216
-
217
-
6. **`gobject-2.0` Not Found Error:** Resolve this error by installing `libglib2.0-dev` (Debian/Ubuntu):
218
-
219
-
Bash
220
-
221
-
```
222
-
sudo apt install -y libglib2.0-dev pkg-config
223
-
224
-
```
225
-
226
-
For other systems, consult your distribution's documentation.
227
-
228
-
7. **Running the backend:**: To start the backend in development mode, run this command while being in the backend folder and the virtual environment activated:
229
-
230
-
Bash/Powershell
231
-
232
-
```
233
-
fastapi dev
234
-
```
235
-
236
-
The server will start on `http://localhost:8000` by default. In test mode, the server will automatically restart if any errors are detected or if source files are modified.
0 commit comments