aboutsummaryrefslogtreecommitdiff
path: root/dev.sh
diff options
context:
space:
mode:
authorParker <contact@pkrm.dev>2024-11-15 21:20:29 -0600
committerParker <contact@pkrm.dev>2024-11-15 21:20:29 -0600
commit1b1601e4c449254b114522b3c49ab4b126f89cc8 (patch)
tree60dcc2af04ae6e871a30042fb89401e70af11150 /dev.sh
parent4cfc800f8c38eafc54ce35155469d361ee07d8f7 (diff)
Update config and work on shell/docker
Diffstat (limited to 'dev.sh')
-rwxr-xr-xdev.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/dev.sh b/dev.sh
new file mode 100755
index 0000000..e9d2d0b
--- /dev/null
+++ b/dev.sh
@@ -0,0 +1,20 @@
+#! /bin/bash
+# If on Linux or MacOS - check tmux
+if [[ "$OSTYPE" == "linux-gnu"* ]] || [[ "$OSTYPE" == "darwin"* ]]; then
+ python3 linklogger.py &
+ cd app || return
+ yarn dev
+fi
+
+# If on Windows
+if [[ "$OSTYPE" == "msys" ]]; then
+ python3 linklogger.py &
+ cd app || return
+ yarn dev
+ # echo -e "This script is not supported on Windows. Please run the API and UI manually."
+ # echo -e "\t1. Install node.js, yarn, python3, and pip"
+ # echo -e "\t2. Run 'pip install -r requirements.txt' in the root directory"
+ # echo -e "\t3. Run 'python3 linklogger.py' in the root directory"
+ # echo -e "\t4. Run 'cd app' and then 'yarn dev'"
+ # exit 1
+fi \ No newline at end of file