Skip to content

Commit fbb2b3d

Browse files
Added the necessary packages to run the application if the command was executed with --no-optional
1 parent 3ac5b49 commit fbb2b3d

File tree

5 files changed

+12
-30
lines changed

5 files changed

+12
-30
lines changed

README.MD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ MySure demonstrates the following:
6767

6868
1. Download or clone this repository to your workstation in a new folder named **sample-app-mysure-python**.
6969
2. Navigate to the scripts subfolder:**`cd sample-app-mysure-python/scripts`**
70-
3. Run the installation script: **`./install.sh`**
70+
3. Run the installation script: **`./install.sh`** (`./install.bat` for Windows)
7171
4. Update the **.env** file with the integration key and other settings.
7272
> **Note:** Protect your integration key and client secret. You should make sure that the **.env** file will not be stored in your source code repository.
7373

package-lock.json

Lines changed: 2 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"axios": "^0.21.1",
99
"bootstrap": "^4.6.0",
1010
"bootstrap-icons": "^1.4.1",
11+
"chokidar": "^3.5.1",
1112
"history": "^4.10.1",
1213
"html-react-parser": "^0.10.5",
1314
"i18next": "^19.9.2",
@@ -23,7 +24,8 @@
2324
"react-i18next": "^11.8.15",
2425
"react-router-dom": "^5.2.0",
2526
"react-scripts": "^4.0.3",
26-
"typescript": "^4.2.4"
27+
"typescript": "^4.2.4",
28+
"watchpack-chokidar2": "^2.0.1"
2729
},
2830
"optionalDependencies": {
2931
"fsevents": "*"

scripts/install.bat

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
@echo off
22

3+
cd ..
4+
35
python -m venv venv
46

57
call ./venv/Scripts/activate
@@ -9,4 +11,4 @@ pip install -r requirements.txt
911

1012
npm install --no-optional
1113

12-
cd scripts
14+
cd scripts

scripts/install.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@
55
# echo "Move installation to Docker file"
66

77
cd ..
8+
89
python3 -m venv venv
910

1011
# Activate virtual environment
1112
source venv/bin/activate
1213

13-
# Install required python pachages
14+
# Install required python packages
1415
pip3 install --upgrade pip3
1516
pip3 install -r requirements.txt
1617

1718
# Frontend installation
1819
npm install --no-optional
1920

20-
cd scripts
21+
cd scripts || exit

0 commit comments

Comments
 (0)