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.
64
+
> **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
65
48
66
1.**Navigate to the Backend Directory:** Open your terminal and use `cd` to change directories:
4. **Install Dependencies:** The `requirements.txt` file lists required packages. Install them using pip:
89
91
90
-
Bash
92
+
Bash/Powershell
91
93
92
94
```
93
95
pip install -r requirements.txt
94
96
```
95
97
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:
98
+
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:
> **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.
112
+
> **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
113
112
114
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:
121
-
122
-
Bash(Linux/MacOS)
122
+
2. **Create a Conda Environment:** Create a new conda environment with Python 3.12:
123
123
124
-
```
125
-
python3 -m venv .sync-env
126
-
```
127
-
128
-
Powershell(Windows)
124
+
Bash/Powershell
129
125
130
126
```
131
-
python -m venv .sync-env
127
+
conda create -p .sync-env python=3.12
132
128
```
133
129
134
-
3. **Activate the Virtual Environment:**
130
+
3. **Activate the Conda Environment:**
135
131
136
-
Bash(Linux/MacOS)
137
-
138
-
```
139
-
source .sync-env/bin/activate
140
-
```
141
-
142
-
Powershell(Windows)
132
+
Bash/Powershell
143
133
144
134
```
145
-
.sync-env\Scripts\Activate.ps1
135
+
conda activate ./.sync-env
146
136
```
147
137
148
-
After activating, you should be able to see the virtual environment's name before the current path.
149
-
150
138
4. **Install Dependencies:** The `requirements.txt` file lists required packages. Install them using pip:
151
139
152
-
Bash
140
+
Bash/Powershell
153
141
154
142
```
155
143
pip install -r requirements.txt
156
144
```
157
145
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:
146
+
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:
0 commit comments