From 15eca19079cc84b0244da2a914437e96def6d171 Mon Sep 17 00:00:00 2001 From: Jay Date: Thu, 22 Aug 2024 13:05:57 +0530 Subject: [PATCH 1/2] setup files added --- setup.bat | 25 +++++++++++++++++++++++++ setup.sh | 25 +++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 setup.bat create mode 100644 setup.sh diff --git a/setup.bat b/setup.bat new file mode 100644 index 0000000..70def16 --- /dev/null +++ b/setup.bat @@ -0,0 +1,25 @@ +@echo off + +@REM REM Check if the folder exists, if not, create it +if not exist "./src/utils/api-manager" ( + mkdir "./src/utils/api-manager" +) + +@REM REM Check if the folder exists, if not, create it +if not exist "./src/utils/secure-route" ( + mkdir "./src/utils/secure-route" +) + +if not exist "./src/config" ( + mkdir "./src/config" +) + +@REM REM Clone repo1 +git clone https://git.humbingo.in/Humbingo/api-manager.git "./src/check/api-manager" +git clone https://git.humbingo.in/Humbingo/secure-route.git "./src/check/secure-route" + +copy "src\utils\secure-route\Setup\ComponentRegister.js.back" "./src/config/ComponentRegister.js" +copy "src\utils\secure-route\Setup\Global.js" "./src/config/Global.js" +copy "src\utils\secure-route\Setup\Global.json" "./src/config/Global.json" + +pause diff --git a/setup.sh b/setup.sh new file mode 100644 index 0000000..a92b6d2 --- /dev/null +++ b/setup.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +# Check if the folder exists, if not, create it +if [ ! -d "./src/utils/api-manager" ]; then + mkdir -p "./src/utils/api-manager" +fi + +# Check if the folder exists, if not, create it +if [ ! -d "./src/utils/secure-route" ]; then + mkdir -p "./src/utils/secure-route" +fi + +# Check if the folder exists, if not, create it +if [ ! -d "./src/config" ]; then + mkdir -p "./src/config" +fi + +# Clone repo1 +git clone https://git.humbingo.in/Humbingo/api-manager.git "./src/utils/api-manager" +git clone https://git.humbingo.in/Humbingo/secure-route.git "./src/utils/secure-route" + +# Copy files +cp "./src/utils/secure-route/Setup/ComponentRegister.js.back" "./src/config/ComponentRegister.js" +cp "./src/utils/secure-route/Setup/Global.js" "./src/config/Global.js" +cp "./src/utils/secure-route/Setup/Global.json" "./src/config/Global.json" From 3142afd253e9223a86e6335627d5d9ea0a7ef07d Mon Sep 17 00:00:00 2001 From: Jay Date: Thu, 22 Aug 2024 13:06:30 +0530 Subject: [PATCH 2/2] node install --- setup.bat | 2 +- setup.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.bat b/setup.bat index 70def16..08093fb 100644 --- a/setup.bat +++ b/setup.bat @@ -21,5 +21,5 @@ git clone https://git.humbingo.in/Humbingo/secure-route.git "./src/check/secure- copy "src\utils\secure-route\Setup\ComponentRegister.js.back" "./src/config/ComponentRegister.js" copy "src\utils\secure-route\Setup\Global.js" "./src/config/Global.js" copy "src\utils\secure-route\Setup\Global.json" "./src/config/Global.json" - +npm install pause diff --git a/setup.sh b/setup.sh index a92b6d2..5101d5c 100644 --- a/setup.sh +++ b/setup.sh @@ -23,3 +23,4 @@ git clone https://git.humbingo.in/Humbingo/secure-route.git "./src/utils/secure- cp "./src/utils/secure-route/Setup/ComponentRegister.js.back" "./src/config/ComponentRegister.js" cp "./src/utils/secure-route/Setup/Global.js" "./src/config/Global.js" cp "./src/utils/secure-route/Setup/Global.json" "./src/config/Global.json" +npm install \ No newline at end of file