-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.sh
37 lines (36 loc) · 935 Bytes
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# Detecting the user's operating system
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
# Linux detected
echo "Detected Linux OS"
# Start Python backend
cd Backend
python server.py &
# Start React frontend and install dependencies
cd ../Frontend
npm install
npm run start
elif [[ "$OSTYPE" == "darwin"* ]]; then
# macOS detected
echo "Detected macOS"
# Start Python backend
cd Backend
python server.py &
# Start React frontend and install dependencies
cd ../Frontend
npm install
npm run start
elif [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
# Windows detected
echo "Detected Windows OS"
# Start Python backend
cd Backend
start python server.py
# Start React frontend and install dependencies
cd ../Frontend
start npm install
start npm run start
else
echo "Unsupported operating system"
exit 1
fi