Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ async def root():
# Create a simple config with log_config=None to disable Uvicorn's default logging
config = Config(
app=app,
host="0.0.0.0",
host="localhost",
port=52123,
log_level="info",
log_config=None, # This is crucial - disable Uvicorn's default logging config
Expand Down
45 changes: 7 additions & 38 deletions docs/Manual_Setup_Guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ git remote add upstream https://github.com/AOSSIE-Org/PictoPy
Before setting up the Python backend and sync-microservice, you need to have **Miniconda** installed and set up on your system.

1. **Download and Install Miniconda:**

- Visit the [Miniconda installation guide](https://www.anaconda.com/docs/getting-started/miniconda/install#quickstart-install-instructions)
- Follow the quickstart install instructions for your operating system
- Make sure `conda` is available in your terminal after installation
Expand Down Expand Up @@ -75,7 +76,7 @@ Before setting up the Python backend and sync-microservice, you need to have **M
Bash/Powershell

```
conda create -n .env python=3.12
conda create -p .env python=3.12
```

3. **Activate the Conda Environment:**
Expand All @@ -86,31 +87,15 @@ Before setting up the Python backend and sync-microservice, you need to have **M
conda activate ./.env
```

4. **Update PATH (Important):** Ensure the conda environment's binaries are prioritized:

Bash (Linux/MacOS)

```
export PATH="$CONDA_PREFIX/bin:$PATH"
```

Powershell (Windows)

```
$env:PATH = "$env:CONDA_PREFIX\Scripts;$env:PATH"
```

After activating, you should be able to see the conda environment's name before the current path.

5. **Install Dependencies:** The `requirements.txt` file lists required packages. Install them using pip:
4. **Install Dependencies:** The `requirements.txt` file lists required packages. Install them using pip:

Bash/Powershell

```
pip install -r requirements.txt
```

6. **Running the backend:**: To start the backend in development mode, run this command while being in the backend folder and the conda environment activated:
5. **Running the backend:**: To start the backend in development mode, run this command while being in the backend folder and the conda environment activated:

Bash/Powershell

Expand Down Expand Up @@ -139,7 +124,7 @@ Before setting up the Python backend and sync-microservice, you need to have **M
Bash/Powershell

```
conda create -n .sync-env python=3.12
conda create -p .sync-env python=3.12
```

3. **Activate the Conda Environment:**
Expand All @@ -150,31 +135,15 @@ Before setting up the Python backend and sync-microservice, you need to have **M
conda activate ./.sync-env
```

4. **Update PATH (Important):** Ensure the conda environment's binaries are prioritized:

Bash (Linux/MacOS)

```
export PATH="$CONDA_PREFIX/bin:$PATH"
```

Powershell (Windows)

```
$env:PATH = "$env:CONDA_PREFIX\Scripts;$env:PATH"
```

After activating, you should be able to see the conda environment's name before the current path.

5. **Install Dependencies:** The `requirements.txt` file lists required packages. Install them using pip:
4. **Install Dependencies:** The `requirements.txt` file lists required packages. Install them using pip:

Bash/Powershell

```
pip install -r requirements.txt
```

6. **Running the sync-microservice:** To start the sync-microservice in development mode, run this command while being in the sync-microservice folder and the conda environment activated:
5. **Running the sync-microservice:** To start the sync-microservice in development mode, run this command while being in the sync-microservice folder and the conda environment activated:

Bash/Powershell

Expand Down
4 changes: 2 additions & 2 deletions sync-microservice/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@
app.include_router(folders.router, prefix="/folders", tags=["Folders"])

if __name__ == "__main__":
logger.info("Starting PictoPy Sync Microservice from main...")
logger.info("Starting PictoPy Sync Microservice")

# Create config with log_config=None to disable Uvicorn's default logging
config = Config(
app=app,
host="0.0.0.0",
host="localhost",
port=52124,
log_level="info",
log_config=None, # Disable uvicorn's default logging config
Expand Down
Loading