diff --git a/.github/workflows/azuretesting_soucting2024.yml b/.github/workflows/azuretesting_soucting2024.yml new file mode 100644 index 0000000..d0eeb30 --- /dev/null +++ b/.github/workflows/azuretesting_soucting2024.yml @@ -0,0 +1,71 @@ +# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy +# More GitHub Actions for Azure: https://github.com/Azure/actions + +name: Build and deploy Node.js app to Azure Web App - Soucting2024 + +on: + push: + branches: + - AzureTesting + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Node.js version + uses: actions/setup-node@v3 + with: + node-version: '20.x' + + - name: npm install, build, and test + run: | + npm install + npm run build --if-present + npm run test --if-present + + - name: Zip artifact for deployment + run: zip release.zip ./* -r + + - name: Upload artifact for deployment job + uses: actions/upload-artifact@v3 + with: + name: node-app + path: release.zip + + deploy: + runs-on: ubuntu-latest + needs: build + environment: + name: 'Production' + url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} + permissions: + id-token: write #This is required for requesting the JWT + + steps: + - name: Download artifact from build job + uses: actions/download-artifact@v3 + with: + name: node-app + + - name: Unzip artifact for deployment + run: unzip release.zip + + - name: Login to Azure + uses: azure/login@v1 + with: + client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_6D62EEE4CFF84CD5A0E1F91362BBB5D0 }} + tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_FEB49CC9B4964DA69540746FE4DAE8C5 }} + subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_2364481ABFED4DA885CAE62591999CF3 }} + + - name: 'Deploy to Azure Web App' + id: deploy-to-webapp + uses: azure/webapps-deploy@v2 + with: + app-name: 'Soucting2024' + slot-name: 'Production' + package: . + \ No newline at end of file diff --git a/.github/workflows/main_scouting7127.yml b/.github/workflows/main_scouting7127.yml new file mode 100644 index 0000000..6dc1468 --- /dev/null +++ b/.github/workflows/main_scouting7127.yml @@ -0,0 +1,66 @@ +# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy +# More GitHub Actions for Azure: https://github.com/Azure/actions + +name: Build and deploy PHP app to Azure Web App - Scouting7127 + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.2' + + - name: Check if composer.json exists + id: check_files + uses: andstor/file-existence-action@v1 + with: + files: 'composer.json' + + - name: Run composer install if composer.json exists + if: steps.check_files.outputs.files_exists == 'true' + run: composer validate --no-check-publish && composer install --prefer-dist --no-progress + + - name: Zip artifact for deployment + run: zip release.zip ./* -r + + - name: Upload artifact for deployment job + uses: actions/upload-artifact@v3 + with: + name: php-app + path: release.zip + + deploy: + runs-on: ubuntu-latest + needs: build + environment: + name: 'Production' + url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} + + steps: + - name: Download artifact from build job + uses: actions/download-artifact@v3 + with: + name: php-app + + - name: Unzip artifact for deployment + run: unzip release.zip + + - name: 'Deploy to Azure Web App' + uses: azure/webapps-deploy@v2 + id: deploy-to-webapp + with: + app-name: 'Scouting7127' + slot-name: 'Production' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_EC691B8978674A549C7C7DD389A10940 }} + package: . diff --git a/.github/workflows/main_soucting2024.yml b/.github/workflows/main_soucting2024.yml new file mode 100644 index 0000000..dd228f5 --- /dev/null +++ b/.github/workflows/main_soucting2024.yml @@ -0,0 +1,71 @@ +# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy +# More GitHub Actions for Azure: https://github.com/Azure/actions + +name: Build and deploy Node.js app to Azure Web App - Soucting2024 + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Node.js version + uses: actions/setup-node@v3 + with: + node-version: '20.x' + + - name: npm install, build, and test + run: | + npm install + npm run build --if-present + npm run test --if-present + + - name: Zip artifact for deployment + run: zip release.zip ./* -r + + - name: Upload artifact for deployment job + uses: actions/upload-artifact@v3 + with: + name: node-app + path: release.zip + + deploy: + runs-on: ubuntu-latest + needs: build + environment: + name: 'Production' + url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} + permissions: + id-token: write #This is required for requesting the JWT + + steps: + - name: Download artifact from build job + uses: actions/download-artifact@v3 + with: + name: node-app + + - name: Unzip artifact for deployment + run: unzip release.zip + + - name: Login to Azure + uses: azure/login@v1 + with: + client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_11BB77DD6BF74296BF3323527201B43E }} + tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_2BB5126B64474337AC450F6772CF20CC }} + subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_4FCA4753EC994801A4E837E9E0E8D822 }} + + - name: 'Deploy to Azure Web App' + id: deploy-to-webapp + uses: azure/webapps-deploy@v2 + with: + app-name: 'Soucting2024' + slot-name: 'Production' + package: . + \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..328b382 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +# ignore ALL .log files +*.log + +# ignore ALL files in ANY directory named temp +temp/ +phpMyAdmin/ \ No newline at end of file diff --git a/README.md b/README.md index c7fdd3c..5597ed9 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,12 @@ # scouting2024 -scouting app for competitions written with xcode (vscode?) +scouting app for competitions written with xcode/vscode +// +current HTML page references the link below for experimental purposes +https://blog.openreplay.com/building-a-mobile-app-using-html-css-and-js/#:~:text=Cheap%20and%20Fast%20Development%3A%20PWAs,are%20required%20for%20a%20PWA. + +https://scouting7127.azurewebsites.net/ + +https://scouting7127.azurewebsites.net/phpmyadmin/ + +https://stackoverflow.com/questions/22342836/syncing-indexeddb-with-sql-server + diff --git a/index.css b/index.css index 1825404..e39fbee 100644 --- a/index.css +++ b/index.css @@ -10,6 +10,7 @@ --teamlist: #cfedff; --text: #2d3875; --deletebutton: #de4e4e; + --navbar: #565f90 } * { @@ -18,6 +19,15 @@ font-family: "Fira sans", sans-serif; } +nav { + display: flex; + justify-content: space-around; + align-items: center; + min-height: 8vh; + background-color: var(--navbar); + font-family: "Montserrat", sans-serif; +} + body { display: flex; flex-direction: column; diff --git a/index.html b/index.html index 4e05dd6..5f9073a 100644 --- a/index.html +++ b/index.html @@ -7,6 +7,7 @@