feat: add update and start script for dummies #828
@ -1,9 +1,9 @@
 | 
				
			|||||||
| 
						
							
	
	
	
	
	
	
	
	 | 
				|||||||
git pull
 | 
					git pull
 | 
				
			||||||
call npm i
 | 
					 | 
				
			||||||
| 
						
							
	
	
	
	
	
	
	
	 🛠️ Refactor suggestion Ensure consistent use of  The  
📝 Committable suggestion
 _:hammer_and_wrench: Refactor suggestion_
**Ensure consistent use of `call` and add error handling for npm operations.**
The `npm` commands should be consistent in using `call` and include error handling.
```diff
-call npm i
+@echo Installing dependencies...
+call npm i || (
+    echo Failed to install dependencies
+    pause
+    exit /b 1
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
@echo Installing dependencies...
call npm i || (
    echo Failed to install dependencies
    pause
    exit /b 1
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit --> 
			
			
		🛠️ Refactor suggestion Improve directory handling and add validation. The script uses hard-coded paths and lacks directory validation. 
📝 Committable suggestion
 _:hammer_and_wrench: Refactor suggestion_
**Improve directory handling and add validation.**
The script uses hard-coded paths and lacks directory validation.
```diff
-if exist static\data\0\ (
-	cd static\data\0\
-	git pull
-	cd ..\..\..\
-)
+if exist static\data\0\ (
+    @echo Updating data repository...
+    pushd static\data\0\ || (
+        echo Failed to enter data directory
+        pause
+        exit /b 1
+    )
+    git pull origin main || (
+        echo Failed to update data repository
+        popd
+        pause
+        exit /b 1
+    )
+    popd
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
if exist static\data\0\ (
    @echo Updating data repository...
    pushd static\data\0\ || (
        echo Failed to enter data directory
        pause
        exit /b 1
    )
    git pull origin main || (
        echo Failed to update data repository
        popd
        pause
        exit /b 1
    )
    popd
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit --> 
			
			
		 | 
				|||||||
if exist static\data\0\ (
 | 
					if exist static\data\0\ (
 | 
				
			||||||
	cd static\data\0\
 | 
						cd static\data\0\
 | 
				
			||||||
	git pull
 | 
						git pull
 | 
				
			||||||
| 
						
							
	
	
	
	
	
	
	
	 🛠️ Refactor suggestion Add error handling and branch specification for git operations. The  
📝 Committable suggestion
 _:hammer_and_wrench: Refactor suggestion_
**Add error handling and branch specification for git operations.**
The `git pull` command should include error handling and specify the branch to avoid unintended merges.
```diff
-git pull
+@echo Updating repository...
+git pull origin main || (
+    echo Failed to update repository
+    pause
+    exit /b 1
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
@echo Updating repository...
git pull origin main || (
    echo Failed to update repository
    pause
    exit /b 1
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit --> 
			
			
		 | 
				|||||||
	cd ..\..\..\
 | 
						cd ..\..\..\
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					call npm i
 | 
				
			||||||
| 
						
							
	
	
	
	
	
	
	
	 🛠️ Refactor suggestion Ensure consistent use of  The  
📝 Committable suggestion
 _:hammer_and_wrench: Refactor suggestion_
**Ensure consistent use of `call` and add error handling for npm operations.**
The `npm` commands should be consistent in using `call` and include error handling.
```diff
-call npm i
+@echo Installing dependencies...
+call npm i || (
+    echo Failed to install dependencies
+    pause
+    exit /b 1
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
@echo Installing dependencies...
call npm i || (
    echo Failed to install dependencies
    pause
    exit /b 1
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit --> 
			
			
		🛠️ Refactor suggestion Improve directory handling and add validation. The script uses hard-coded paths and lacks directory validation. 
📝 Committable suggestion
 _:hammer_and_wrench: Refactor suggestion_
**Improve directory handling and add validation.**
The script uses hard-coded paths and lacks directory validation.
```diff
-if exist static\data\0\ (
-	cd static\data\0\
-	git pull
-	cd ..\..\..\
-)
+if exist static\data\0\ (
+    @echo Updating data repository...
+    pushd static\data\0\ || (
+        echo Failed to enter data directory
+        pause
+        exit /b 1
+    )
+    git pull origin main || (
+        echo Failed to update data repository
+        popd
+        pause
+        exit /b 1
+    )
+    popd
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
if exist static\data\0\ (
    @echo Updating data repository...
    pushd static\data\0\ || (
        echo Failed to enter data directory
        pause
        exit /b 1
    )
    git pull origin main || (
        echo Failed to update data repository
        popd
        pause
        exit /b 1
    )
    popd
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit --> 
			
			
		 | 
				|||||||
call npm run build
 | 
					call npm run build
 | 
				
			||||||
call npm run start
 | 
					call npm run start
 | 
				
			||||||
 | 
				
			|||||||
| 
						
							
	
	
	
	
	
	
	
	 🛠️ Refactor suggestion Ensure consistent use of  The  
📝 Committable suggestion
 _:hammer_and_wrench: Refactor suggestion_
**Ensure consistent use of `call` and add error handling for npm operations.**
The `npm` commands should be consistent in using `call` and include error handling.
```diff
-call npm i
+@echo Installing dependencies...
+call npm i || (
+    echo Failed to install dependencies
+    pause
+    exit /b 1
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
@echo Installing dependencies...
call npm i || (
    echo Failed to install dependencies
    pause
    exit /b 1
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit --> 
			
			
		🛠️ Refactor suggestion Improve directory handling and add validation. The script uses hard-coded paths and lacks directory validation. 
📝 Committable suggestion
 _:hammer_and_wrench: Refactor suggestion_
**Improve directory handling and add validation.**
The script uses hard-coded paths and lacks directory validation.
```diff
-if exist static\data\0\ (
-	cd static\data\0\
-	git pull
-	cd ..\..\..\
-)
+if exist static\data\0\ (
+    @echo Updating data repository...
+    pushd static\data\0\ || (
+        echo Failed to enter data directory
+        pause
+        exit /b 1
+    )
+    git pull origin main || (
+        echo Failed to update data repository
+        popd
+        pause
+        exit /b 1
+    )
+    popd
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
if exist static\data\0\ (
    @echo Updating data repository...
    pushd static\data\0\ || (
        echo Failed to enter data directory
        pause
        exit /b 1
    )
    git pull origin main || (
        echo Failed to update data repository
        popd
        pause
        exit /b 1
    )
    popd
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit --> 
			
			
		🛠️ Refactor suggestion Ensure consistent use of  The  
📝 Committable suggestion
 _:hammer_and_wrench: Refactor suggestion_
**Ensure consistent use of `call` and add error handling for npm operations.**
The `npm` commands should be consistent in using `call` and include error handling.
```diff
-call npm i
+@echo Installing dependencies...
+call npm i || (
+    echo Failed to install dependencies
+    pause
+    exit /b 1
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
@echo Installing dependencies...
call npm i || (
    echo Failed to install dependencies
    pause
    exit /b 1
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit --> 
			
			
		🛠️ Refactor suggestion Improve directory handling and add validation. The script uses hard-coded paths and lacks directory validation. 
📝 Committable suggestion
 _:hammer_and_wrench: Refactor suggestion_
**Improve directory handling and add validation.**
The script uses hard-coded paths and lacks directory validation.
```diff
-if exist static\data\0\ (
-	cd static\data\0\
-	git pull
-	cd ..\..\..\
-)
+if exist static\data\0\ (
+    @echo Updating data repository...
+    pushd static\data\0\ || (
+        echo Failed to enter data directory
+        pause
+        exit /b 1
+    )
+    git pull origin main || (
+        echo Failed to update data repository
+        popd
+        pause
+        exit /b 1
+    )
+    popd
+)
```
<!-- suggestion_start -->
<details>
<summary>📝 Committable suggestion</summary>
> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
`````suggestion
if exist static\data\0\ (
    @echo Updating data repository...
    pushd static\data\0\ || (
        echo Failed to enter data directory
        pause
        exit /b 1
    )
    git pull origin main || (
        echo Failed to update data repository
        popd
        pause
        exit /b 1
    )
    popd
)
`````
</details>
<!-- suggestion_end -->
<!-- This is an auto-generated comment by CodeRabbit --> 
			
			
		 | 
				|||||||
🛠️ Refactor suggestion
Ensure consistent use of
calland add error handling for npm operations.The
npmcommands should be consistent in usingcalland include error handling.📝 Committable suggestion
🛠️ Refactor suggestion
Improve directory handling and add validation.
The script uses hard-coded paths and lacks directory validation.
📝 Committable suggestion
🛠️ Refactor suggestion
Ensure consistent use of
calland add error handling for npm operations.The
npmcommands should be consistent in usingcalland include error handling.📝 Committable suggestion
🛠️ Refactor suggestion
Improve directory handling and add validation.
The script uses hard-coded paths and lacks directory validation.
📝 Committable suggestion