-
Notifications
You must be signed in to change notification settings - Fork 580
Update Manual Setup Guide to include Miniconda installation instructions #971
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,6 +24,23 @@ cd PictoPy | |
| git remote add upstream https://github.com/AOSSIE-Org/PictoPy | ||
| ``` | ||
|
|
||
| ### Prerequisites: | ||
|
|
||
| #### Install and Setup Miniconda | ||
|
|
||
| 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 | ||
|
|
||
| 2. **Verify Installation:** | ||
| ```bash | ||
| conda --version | ||
| ``` | ||
| You should see the conda version number if installed correctly. | ||
|
|
||
| ### Tauri Frontend Setup: | ||
|
|
||
| 1. **Install Tauri prerequisites based on your OS using this** [guide](https://tauri.app/start/prerequisites/). | ||
|
|
@@ -43,7 +60,7 @@ git remote add upstream https://github.com/AOSSIE-Org/PictoPy | |
|
|
||
| ### Python (FastAPI) Backend Setup Steps: | ||
|
|
||
| > **Note:** For backend setup make sure that you have **Python version 3.12**. Additionally, for Windows, make sure that you are using Powershell for the setup, not command prompt. | ||
| > **Note:** For backend setup make sure that you have **Miniconda installed** (see Prerequisites section above). Additionally, for Windows, make sure that you are using Powershell for the setup, not command prompt. | ||
|
|
||
| 1. **Navigate to the Backend Directory:** Open your terminal and use `cd` to change directories: | ||
|
|
||
|
|
@@ -53,47 +70,47 @@ git remote add upstream https://github.com/AOSSIE-Org/PictoPy | |
| cd backend | ||
| ``` | ||
|
|
||
| 2. **Set Up a Virtual Environment (Highly Recommended):** Virtual environments isolate project dependencies. Create one using: | ||
| 2. **Create a Conda Environment:** Create a new conda environment with Python 3.12: | ||
|
|
||
| Bash(Linux/MacOS) | ||
| Bash/Powershell | ||
|
|
||
| ``` | ||
| python3 -m venv .env | ||
| conda create -n .env python=3.12 | ||
| ``` | ||
|
|
||
| Powershell(Windows) | ||
| 3. **Activate the Conda Environment:** | ||
|
|
||
| Bash/Powershell | ||
|
|
||
| ``` | ||
| python -m venv .env | ||
| conda activate ./.env | ||
| ``` | ||
|
|
||
| 3. **Activate the Virtual Environment:** | ||
| 4. **Update PATH (Important):** Ensure the conda environment's binaries are prioritized: | ||
|
|
||
| Bash(Linux/MacOS) | ||
| Bash (Linux/MacOS) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correct macOS spelling (not "MacOS"). Update both instances to use the correct capitalization: 🔎 Proposed fixesLine 91: - Bash (Linux/MacOS)
+ Bash (Linux/macOS)Line 155: - Bash (Linux/MacOS)
+ Bash (Linux/macOS)Also applies to: 155-155 🧰 Tools🪛 LanguageTool[uncategorized] ~91-~91: The operating system from Apple is written “macOS”. (MAC_OS) 🤖 Prompt for AI Agents |
||
|
|
||
| ``` | ||
| source .env/bin/activate | ||
| export PATH="$CONDA_PREFIX/bin:$PATH" | ||
| ``` | ||
|
|
||
| Powershell(Windows) | ||
| Powershell (Windows) | ||
|
|
||
| ``` | ||
| .env\Scripts\Activate.ps1 | ||
| $env:PATH = "$env:CONDA_PREFIX\Scripts;$env:PATH" | ||
| ``` | ||
|
|
||
| After activating, you should be able to see the virtual environment's name before the current path. Something like this: | ||
| 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 | ||
| Bash/Powershell | ||
|
|
||
| ``` | ||
| pip install -r requirements.txt | ||
| ``` | ||
|
|
||
| 5. **Running the backend:**: To start the backend in development mode, run this command while being in the backend folder and the virtual environment activated: | ||
| 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: | ||
|
|
||
| Bash/Powershell | ||
|
|
||
|
|
@@ -107,7 +124,7 @@ git remote add upstream https://github.com/AOSSIE-Org/PictoPy | |
|
|
||
| ### Sync-Microservice Setup Steps: | ||
|
|
||
| > **Note:** For sync-microservice setup make sure that you have **Python version 3.12**. Additionally, for Windows, make sure that you are using Powershell for the setup, not command prompt. | ||
| > **Note:** For sync-microservice setup make sure that you have **Miniconda installed** (see Prerequisites section above). Additionally, for Windows, make sure that you are using Powershell for the setup, not command prompt. | ||
|
|
||
| 1. **Navigate to the Sync-Microservice Directory:** Open your terminal and use `cd` to change directories: | ||
|
|
||
|
|
@@ -117,45 +134,47 @@ git remote add upstream https://github.com/AOSSIE-Org/PictoPy | |
| cd sync-microservice | ||
| ``` | ||
|
|
||
| 2. **Set Up a Virtual Environment (Highly Recommended):** Virtual environments isolate project dependencies. Create one using: | ||
| 2. **Create a Conda Environment:** Create a new conda environment with Python 3.12: | ||
|
|
||
| Bash(Linux/MacOS) | ||
| Bash/Powershell | ||
|
|
||
| ``` | ||
| python3 -m venv .sync-env | ||
| conda create -n .sync-env python=3.12 | ||
| ``` | ||
|
|
||
| Powershell(Windows) | ||
| 3. **Activate the Conda Environment:** | ||
|
|
||
| Bash/Powershell | ||
|
|
||
| ``` | ||
| python -m venv .sync-env | ||
| conda activate ./.sync-env | ||
| ``` | ||
|
|
||
| 3. **Activate the Virtual Environment:** | ||
| 4. **Update PATH (Important):** Ensure the conda environment's binaries are prioritized: | ||
|
|
||
| Bash(Linux/MacOS) | ||
| Bash (Linux/MacOS) | ||
|
|
||
| ``` | ||
| source .sync-env/bin/activate | ||
| export PATH="$CONDA_PREFIX/bin:$PATH" | ||
| ``` | ||
|
|
||
| Powershell(Windows) | ||
| Powershell (Windows) | ||
|
|
||
| ``` | ||
| .sync-env\Scripts\Activate.ps1 | ||
| $env:PATH = "$env:CONDA_PREFIX\Scripts;$env:PATH" | ||
| ``` | ||
|
|
||
| After activating, you should be able to see the virtual environment's name before the current path. | ||
| After activating, you should be able to see the conda environment's name before the current path. | ||
|
|
||
| 4. **Install Dependencies:** The `requirements.txt` file lists required packages. Install them using pip: | ||
| 5. **Install Dependencies:** The `requirements.txt` file lists required packages. Install them using pip: | ||
|
|
||
| Bash | ||
| Bash/Powershell | ||
|
|
||
| ``` | ||
| pip install -r requirements.txt | ||
| ``` | ||
|
|
||
| 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 virtual environment activated: | ||
| 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: | ||
|
|
||
| Bash/Powershell | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add language specifiers to fenced code blocks.
Markdown linting requires language specifiers for all fenced code blocks. Update the backticks to include the language identifier (e.g.,
```bashor```powershell).For example, the block at lines 77-79:
conda create -n .env python=3.12
Should be:
Powershell
In @docs/Manual_Setup_Guide.md at line 77, Markdown code fences in the "Backend
Setup" and "Sync-Microservice Setup" sections are missing language specifiers;
update each of the 10 flagged fenced code blocks to include the appropriate
language identifier (e.g.,
bash orpowershell) so the snippets like theconda create/activate commands, export PATH, $env:PATH, pip install, and their
counterparts in the sync-microservice section are fenced as ```bash or