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
Follow the steps below to set up and run the **Document-Generation-Solution-Accelerator** locally.
3
+
This guide provides comprehensive instructions for setting up the DocumentGenerationSolutionAccelerator for local development across Windows and Linux platforms.
4
4
5
+
## Important Setup Notes
5
6
7
+
### Multi-Service Architecture
6
8
7
-
## Prerequisites
9
+
This application consists of **two separate services** that run independently:
10
+
11
+
2.**Backend API** - REST API server for the frontend
12
+
3.**Frontend** - React-based user interface
13
+
14
+
> **⚠️ Critical: Each service must run in its own terminal/console window**
15
+
>
16
+
> -**Do NOT close terminals** while services are running
17
+
> - Open **2 separate terminal windows** for local development
18
+
> - Each service will occupy its terminal and show live logs
19
+
20
+
21
+
### Path Conventions
22
+
23
+
**All paths in this guide are relative to the repository root directory:**
Choose a location on your local machine where you want to store the project files. We recommend creating a dedicated folder for your development projects.
27
147
@@ -42,7 +162,69 @@ Choose a location on your local machine where you want to store the project file
42
162
code .
43
163
```
44
164
45
-
## Local Setup/Deplpoyment
165
+
166
+
## Step 3: Development Tools Setup
167
+
168
+
### Visual Studio Code (Recommended)
169
+
170
+
#### Required Extensions
171
+
172
+
Create `.vscode/extensions.json` in the workspace root and copy the following JSON:
173
+
174
+
```json
175
+
{
176
+
"recommendations": [
177
+
"ms-python.python",
178
+
"ms-python.pylint",
179
+
"ms-python.black-formatter",
180
+
"ms-python.isort",
181
+
"ms-vscode-remote.remote-wsl",
182
+
"ms-vscode-remote.remote-containers",
183
+
"redhat.vscode-yaml",
184
+
"ms-vscode.azure-account",
185
+
"ms-python.mypy-type-checker"
186
+
]
187
+
}
188
+
```
189
+
190
+
VS Code will prompt you to install these recommended extensions when you open the workspace.
191
+
192
+
#### Settings Configuration
193
+
194
+
Create `.vscode/settings.json` and copy the following JSON:
--role-definition-name "Cosmos DB Built-in Data Contributor" \
282
+
--principal-id $PRINCIPAL_ID \
283
+
--scope "/"
284
+
```
285
+
> **Note**: After local deployment is complete, you need to execute the post-deployment script so that all the required roles will be assigned automatically.
83
286
84
287
## Running with Automated Script
85
288
@@ -97,8 +300,16 @@ cd src
97
300
chmod +x start.sh
98
301
./start.sh
99
302
```
303
+
### Start the Application
304
+
- Run `start.cmd` (Windows) or `start.sh` (Linux/Mac) to:
305
+
- Install backend dependencies.
306
+
- Install frontend dependencies.
307
+
- Build the frontend.
308
+
- Start the backend server.
309
+
- Alternatively, you can run the backend in debug mode using the VS Code debug configuration defined in `.vscode/launch.json`.
310
+
100
311
101
-
## Running Backend and Frontend Separately
312
+
## Step 6: Running Backend and Frontend Separately
0 commit comments