From 0dac4698c0d4378dfefab6ae35e56cd3e2b0d6ce Mon Sep 17 00:00:00 2001 From: harisk74 Date: Tue, 14 May 2024 12:06:54 +0000 Subject: [PATCH 1/3] Update titl and color --- frontend/src/views/Home.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/Home.vue b/frontend/src/views/Home.vue index 16cd3818..7e450be1 100644 --- a/frontend/src/views/Home.vue +++ b/frontend/src/views/Home.vue @@ -6,8 +6,8 @@
- - Milligram + + MiniApp HarisGram From c53c480e2debfa4f13927a049fccb23d2d5369cc Mon Sep 17 00:00:00 2001 From: Charis K Date: Wed, 15 May 2024 11:23:08 +0300 Subject: [PATCH 2/3] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/main_harisgram-backend.yml | 69 ++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 .github/workflows/main_harisgram-backend.yml diff --git a/.github/workflows/main_harisgram-backend.yml b/.github/workflows/main_harisgram-backend.yml new file mode 100644 index 00000000..b9a54ce9 --- /dev/null +++ b/.github/workflows/main_harisgram-backend.yml @@ -0,0 +1,69 @@ +# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy +# More GitHub Actions for Azure: https://github.com/Azure/actions +# More info on Python, GitHub Actions, and Azure App Service: https://aka.ms/python-webapps-actions + +name: Build and deploy Python app to Azure Web App - harisgram-backend + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python version + uses: actions/setup-python@v1 + with: + python-version: '3.12' + + - name: Create and start virtual environment + run: | + python -m venv venv + source venv/bin/activate + + - name: Install dependencies + run: pip install -r requirements.txt + + # Optional: Add step to run tests here (PyTest, Django test suites, etc.) + + - name: Zip artifact for deployment + run: zip release.zip ./* -r + + - name: Upload artifact for deployment jobs + uses: actions/upload-artifact@v3 + with: + name: python-app + path: | + release.zip + !venv/ + + 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: python-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: 'harisgram-backend' + slot-name: 'Production' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_6DA7FA66310746DA8F5F53883FB52D49 }} \ No newline at end of file From 878300ac5a29f3fe56c9c82549ee3d171d47d9b7 Mon Sep 17 00:00:00 2001 From: Charis K Date: Wed, 15 May 2024 12:44:40 +0000 Subject: [PATCH 3/3] chat bot addition --- .github/workflows/main_harisgram-backend.yml | 9 +- frontend/src/App.vue | 126 ++----------------- 2 files changed, 18 insertions(+), 117 deletions(-) diff --git a/.github/workflows/main_harisgram-backend.yml b/.github/workflows/main_harisgram-backend.yml index b9a54ce9..adbead12 100644 --- a/.github/workflows/main_harisgram-backend.yml +++ b/.github/workflows/main_harisgram-backend.yml @@ -66,4 +66,11 @@ jobs: with: app-name: 'harisgram-backend' slot-name: 'Production' - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_6DA7FA66310746DA8F5F53883FB52D49 }} \ No newline at end of file + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_6DA7FA66310746DA8F5F53883FB52D49 }} + - name: 'deploy chatbot' + uses: azure/appservice-settings@v1 + with: + app-name: 'harisgram-backend' + slot-name: 'Production' # Optional and needed only if the settings have to be configured on the specific deployment slot + app-settings-json: '[{ "name": "CHAT_API_KEY", "value": "${{ secrets.CHAT_API_KEY }}", "slotSetting": false }, { "name": "CHAT_API_ENDPOINT", "value": "${{ secrets.CHAT_API_ENDPOINT }}", "slotSetting": false }, { "name": "AZURE_OPENAI_MODEL_NAME", "value": "${{ secrets.AZURE_OPENAI_MODEL_NAME }}", "slotSetting": false }]' + id: settings \ No newline at end of file diff --git a/frontend/src/App.vue b/frontend/src/App.vue index e23f5213..ad070f31 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -9,130 +9,24 @@ +
+ Made with love ❤️ +
- -