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
> **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.
63
+
> **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.
47
64
48
65
1.**Navigate to the Backend Directory:** Open your terminal and use `cd` to change directories:
5. **Install Dependencies:** The `requirements.txt` file lists required packages. Install them using pip:
87
106
88
-
4. **Install Dependencies:** The `requirements.txt` file lists required packages. Install them using pip:
89
-
90
-
Bash
107
+
Bash/Powershell
91
108
92
109
```
93
110
pip install -r requirements.txt
94
111
```
95
112
96
-
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:
113
+
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:
> **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.
127
+
> **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.
111
128
112
129
1. **Navigate to the Sync-Microservice Directory:** Open your terminal and use `cd` to change directories:
2. **Set Up a Virtual Environment (Highly Recommended):** Virtual environments isolate project dependencies. Create one using:
137
+
2. **Create a Conda Environment:** Create a new conda environment with Python 3.12:
121
138
122
-
Bash(Linux/MacOS)
139
+
Bash/Powershell
123
140
124
141
```
125
-
python3 -m venv .sync-env
142
+
conda create -n .sync-env python=3.12
126
143
```
127
144
128
-
Powershell(Windows)
145
+
3. **Activate the Conda Environment:**
146
+
147
+
Bash/Powershell
129
148
130
149
```
131
-
python -m venv .sync-env
150
+
conda activate ./.sync-env
132
151
```
133
152
134
-
3. **Activate the Virtual Environment:**
153
+
4. **Update PATH (Important):** Ensure the conda environment's binaries are prioritized:
135
154
136
-
Bash(Linux/MacOS)
155
+
Bash(Linux/MacOS)
137
156
138
157
```
139
-
source .sync-env/bin/activate
158
+
export PATH="$CONDA_PREFIX/bin:$PATH"
140
159
```
141
160
142
-
Powershell(Windows)
161
+
Powershell(Windows)
143
162
144
163
```
145
-
.sync-env\Scripts\Activate.ps1
164
+
$env:PATH = "$env:CONDA_PREFIX\Scripts;$env:PATH"
146
165
```
147
166
148
-
After activating, you should be able to see the virtual environment's name before the current path.
167
+
After activating, you should be able to see the conda environment's name before the current path.
149
168
150
-
4. **Install Dependencies:** The `requirements.txt` file lists required packages. Install them using pip:
169
+
5. **Install Dependencies:** The `requirements.txt` file lists required packages. Install them using pip:
151
170
152
-
Bash
171
+
Bash/Powershell
153
172
154
173
```
155
174
pip install -r requirements.txt
156
175
```
157
176
158
-
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:
177
+
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:
0 commit comments