diff --git a/install.sh b/.apibuild/install similarity index 100% rename from install.sh rename to .apibuild/install diff --git a/install.bat b/.apibuild/install.bat similarity index 100% rename from install.bat rename to .apibuild/install.bat diff --git a/server.bat b/.apibuild/server.bat similarity index 100% rename from server.bat rename to .apibuild/server.bat diff --git a/stop.bat b/.apibuild/stop.bat similarity index 100% rename from stop.bat rename to .apibuild/stop.bat diff --git a/stop_port.bat b/.apibuild/stop_port.bat similarity index 100% rename from stop_port.bat rename to .apibuild/stop_port.bat diff --git a/stop_port80.bat b/.apibuild/stop_port80.bat similarity index 100% rename from stop_port80.bat rename to .apibuild/stop_port80.bat diff --git a/test_after.bat b/.apibuild/test_after.bat similarity index 100% rename from test_after.bat rename to .apibuild/test_after.bat diff --git a/test_before.bat b/.apibuild/test_before.bat similarity index 100% rename from test_before.bat rename to .apibuild/test_before.bat diff --git a/test_echo.sh b/.apibuild/test_echo similarity index 100% rename from test_echo.sh rename to .apibuild/test_echo diff --git a/test_echo.bat b/.apibuild/test_echo.bat similarity index 100% rename from test_echo.bat rename to .apibuild/test_echo.bat diff --git a/browser.sh b/.apicra/browser similarity index 90% rename from browser.sh rename to .apicra/browser index cb0857a..83de539 100644 --- a/browser.sh +++ b/.apicra/browser @@ -1,3 +1,4 @@ +#!/bin/bash set URL=http://localhost:3001 ::set BROWSER=chrome set BROWSER=firefox diff --git a/browser.bat b/.apicra/browser.bat similarity index 100% rename from browser.bat rename to .apicra/browser.bat diff --git a/electron.bat b/.apicra/electron.bat similarity index 100% rename from electron.bat rename to .apicra/electron.bat diff --git a/info.sh b/.apicra/info similarity index 100% rename from info.sh rename to .apicra/info diff --git a/info.bat b/.apicra/info.bat similarity index 100% rename from info.bat rename to .apicra/info.bat diff --git a/.apicra/promagen b/.apicra/promagen new file mode 100644 index 0000000..4ddc2aa --- /dev/null +++ b/.apicra/promagen @@ -0,0 +1,2 @@ +#!/bin/bash +curl https://php.apifunc.com/apifunc.php --output apifunc.php \ No newline at end of file diff --git a/update.bat b/.apicra/update similarity index 100% rename from update.bat rename to .apicra/update diff --git a/update.sh b/.apicra/update.bat similarity index 100% rename from update.sh rename to .apicra/update.bat diff --git a/start.sh b/.apiexec/start similarity index 100% rename from start.sh rename to .apiexec/start diff --git a/start.bat b/.apiexec/start.bat similarity index 100% rename from start.bat rename to .apiexec/start.bat diff --git a/status.sh b/.apiexec/status similarity index 100% rename from status.sh rename to .apiexec/status diff --git a/status.bat b/.apiexec/status.bat similarity index 100% rename from status.bat rename to .apiexec/status.bat diff --git a/stop.sh b/.apiexec/stop similarity index 100% rename from stop.sh rename to .apiexec/stop diff --git a/.apitee/install b/.apitee/install new file mode 100644 index 0000000..75f9522 --- /dev/null +++ b/.apitee/install @@ -0,0 +1,7 @@ +#!/bin/bash +echo "I will install Node environment" +apt-get autoremove -y +apt-get update -y +apt-get install nodejs npm -y +#curl -sL https://deb.nodesource.com/setup_12.x | sudo bash - +#apt install nodejs diff --git a/.apitee/install.bat b/.apitee/install.bat new file mode 100644 index 0000000..90d6dbd --- /dev/null +++ b/.apitee/install.bat @@ -0,0 +1,35 @@ +@echo off +:: silent install nodejs on windows console +:: https://www.ibm.com/support/knowledgecenter/SSZUMP_7.2.1/install_grid_sym/install_silent.html +echo I will install NODE, NPM on Windows system, if is existing i will stop this script + +WHERE node +IF %ERRORLEVEL% EQU 0 ( + echo NODE JS is installed, the installation is stopped! + exit +) + +NET SESSION >nul 2>&1 +IF %ERRORLEVEL% NEQ 0 ( + echo This setup needs admin permissions. Please run this file as admin. + pause + exit +) + +setlocal + +set NODEJS_VERSION=v12.16.3 +set NODEJS_FILENAME=node-%NODEJS_VERSION%-x64.msi +set NODEJS_URL=https://nodejs.org/dist/%NODEJS_VERSION%/%NODEJS_FILENAME% +::set NODEJS_DOWNLOAD_LOCATION=.\ +set NODEJS_LOG=node-log.txt +set INSTALLDIR=C:\nodejs\ + +@echo on + +msiexec.exe /i %NODEJS_FILENAME% INSTALLDIR=%INSTALLDIR% /qn /L*v %NODEJS_LOG% + +echo program: %NODEJS_FILENAME% is installed! + +endlocal +dir diff --git a/.apitee/status b/.apitee/status new file mode 100644 index 0000000..4e91fbc --- /dev/null +++ b/.apitee/status @@ -0,0 +1,7 @@ +#!/bin/bash +echo "status of node:" +nodejs -v +#nodejs --version +npm -v +node --version +which node diff --git a/.apitee/status.bat b/.apitee/status.bat new file mode 100644 index 0000000..3da6be2 --- /dev/null +++ b/.apitee/status.bat @@ -0,0 +1,4 @@ +@ECHO OFF +node -v +nodejs -v +which node diff --git a/.apitee/update b/.apitee/update new file mode 100644 index 0000000..eb7b5eb --- /dev/null +++ b/.apitee/update @@ -0,0 +1,10 @@ +#!/bin/bash +echo "I will update nodejs environment" +#npm install -g npm +#!/bin/bash +echo "I will update the nodejs application ..." +npm --version +npm i npm@latest -g +sudo npm cache clean -f +sudo npm install -g n +sudo n stable diff --git a/.apitee/update.bat b/.apitee/update.bat new file mode 100644 index 0000000..8bd4e50 --- /dev/null +++ b/.apitee/update.bat @@ -0,0 +1,3 @@ +#!/bin/bash +echo "I will update nodejs environment" +npm install -g npm diff --git a/.apitee/upgrade b/.apitee/upgrade new file mode 100644 index 0000000..eb0e6b0 --- /dev/null +++ b/.apitee/upgrade @@ -0,0 +1,2 @@ +#!/bin/bash +npm install -g npm diff --git a/.gitignore b/.gitignore index a5a1241..dac1b71 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ + +package-lock.json # Logs logs *.log