-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: updated instructions and convenience scripts
- Loading branch information
1 parent
9b2c65c
commit 61177fc
Showing
4 changed files
with
40 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
@echo off | ||
set LOG_LEVEL=info | ||
|
||
cd backend | ||
python check_install.py | ||
|
||
start /b python main_server.py | ||
set pidsrv=%ERRORLEVEL% | ||
cd ..\ui | ||
|
||
start /b python -m http.server --directory ../ui 8080 | ||
start /b npm run dev | ||
set pidhttp=%ERRORLEVEL% | ||
cd .. | ||
|
||
ping -n 3 127.0.0.1 > nul | ||
start http://localhost:8080/settings.html | ||
start http://localhost:8080 | ||
|
||
taskkill /f /pid %pidsrv% /pid %pidhttp% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
@echo off | ||
cd backend | ||
where python3 >nul 2>&1 || ( | ||
echo python3 could not be found | ||
cd .. | ||
exit /b | ||
) | ||
python3 -m pip install --user bleak websockets | ||
|
||
cd ../ui | ||
where npm >nul 2>&1 || ( | ||
echo npm could not be found | ||
cd .. | ||
exit /b | ||
) | ||
rd /s /q node_modules | ||
|
||
npm install -D | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,3 +26,4 @@ fi | |
rm -rf node_modules | ||
# install dependencies | ||
npm install -D | ||
cd .. |