diff --git a/.env b/.env new file mode 100644 index 000000000..fe63f3832 --- /dev/null +++ b/.env @@ -0,0 +1 @@ +DISCORD_WEBHOOK_URL=https://discordapp.com/api/webhooks/1262761533579202630/VFckidxRg4NMYexynfrMr7068fsyD4OV-hnbLV2yu73fYeuyiE8CRRU1biAN5XLDpgMA diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 03cd145f7..254f0706d 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -7,7 +7,6 @@ on: env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} - GHRC_USERNAME: ${{ secrets.GHRC_USERNAME }} GHRC_TOKEN: ${{ secrets.GHRC_TOKEN }} @@ -23,15 +22,21 @@ jobs: steps: - name: Checkout Code uses: actions/checkout@v3 + - name: Install Node uses: actions/setup-node@v3 with: node-version: 18 + - name: Install Dependencies - run: npm install --force + run: | + npm install --force + npm install @babel/plugin-proposal-private-property-in-object --save-dev - name: Build Project run: npm run build + env: + CI: true # Ensures build fails on warnings - name: Log in to the Container registry uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 @@ -53,4 +58,4 @@ jobs: file: ./user-frontend/Dockerfile push: true tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file + labels: ${{ steps.meta.outputs.labels }} diff --git a/docs/file.txt b/docs/file.txt index e69de29bb..4c74d639a 100644 --- a/docs/file.txt +++ b/docs/file.txt @@ -0,0 +1 @@ +oi9haeghei7O \ No newline at end of file diff --git a/file.txt b/file.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/file.yml b/file.yml deleted file mode 100644 index b82e089ab..000000000 --- a/file.yml +++ /dev/null @@ -1,41 +0,0 @@ -version: "3.8" - -networks: - user-net: - driver: bridge - -services: - traefik: - image: traefik:v3.0 - command: - - "--api.insecure=true" - - "--providers.docker=true" - - "--entrypoints.web.address=:80" - ports: - - "80:80" # Expose HTTP - - "8080:8080" # Expose Traefik dashboard - volumes: - - "/var/run/docker.sock:/var/run/docker.sock:ro" # Allow Traefik to listen to Docker - networks: - - user-net - - - user-frontend: - image: user-frontend:1.0 - labels: - - "traefik.enable=true" - - "traefik.http.routers.frontend.rule=Host(`frontend.localhost`)" - - "traefik.http.services.frontend.loadbalancer.server.port=80" - depends_on: - - user-backend - networks: - - user-net - - user-backend: - image: user-backend:1.0 - labels: - - "traefik.enable=true" - - "traefik.http.routers.backend.rule=Host(`backend.localhost`)" - - "traefik.http.services.backend.loadbalancer.server.port=8082" - networks: - - user-net diff --git a/notes.md b/notes.md deleted file mode 100644 index 61898c8ea..000000000 --- a/notes.md +++ /dev/null @@ -1,50 +0,0 @@ -docker network create web -docker-compose up -d - -sudo systemctl stop nginx -sudo systemctl stop apache2 - -sudo lsof -i :80 -sudo lsof -i :8080 - - -helm create frontend-chart - -helm install frontend-release ./frontend-chart - -helm install backend-release ./backend-chart - -##Verify Deployment -```bash -#deploying backend-chart -kubectl get pods -kubectl get services -eval $(minikube docker-env) -helm install backend-release ./backend-chart -kubectl get pods -kubectl get service -minikube ip #to get the ip address of minikube service 192.168.49.2 -minikube service backend-release-backend-chart --url # http://192.168.49.2:32040 -#Always comment the liveness and readiness checks in the values.yaml file of the chart -#### -kubectl get ingresses -helm uninstall frontend-release -kubectl get deployments -###steps to deploy frontend-release -helm create frontend-chart -helm install frontend-release frontend-chart -kubectl get pods -kubectl get services -minikube ip -minikube service frontend-release-frontend-chart --url ##http://192.168.49.2:31182 -##Debuging images -docker build -t user-frontend:1.0 . -minikube image load user-frontend:1.0 -minikube ssh -- docker system prune -af - -##Rebuild or upgrage deployment -helm upgrade --install frontend-release frontend-chart -helm upgrade --install backend-release backend-chart -const API_BASE_URL = "http://192.168.49.2:8082"; // Replace with Minikube service URL if needed -if we are using minikube -``` \ No newline at end of file diff --git a/trafik.yml b/trafik.yml deleted file mode 100644 index 8d9648267..000000000 --- a/trafik.yml +++ /dev/null @@ -1,12 +0,0 @@ -entryPoints: - web: - address: ":80" - admin: - address: ":8080" - -api: - dashboard: true - -providers: - docker: - exposedByDefault: false diff --git a/user-frontend/package-lock.json b/user-frontend/package-lock.json index 5be22de87..407fa80b9 100644 --- a/user-frontend/package-lock.json +++ b/user-frontend/package-lock.json @@ -8,6 +8,7 @@ "name": "user-frontend", "version": "0.1.0", "dependencies": { + "@babel/plugin-proposal-private-property-in-object": "^7.12.1", "@emotion/react": "^11.13.3", "@emotion/styled": "^11.13.0", "@mui/material": "^6.0.2", @@ -636,9 +637,16 @@ } }, "node_modules/@babel/plugin-proposal-private-property-in-object": { - "version": "7.21.0-placeholder-for-preset-env.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", - "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==", + "version": "7.21.11", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.11.tgz", + "integrity": "sha512-0QZ8qP/3RLDVBwBFoWAwCtgcDZJVwA5LUJRZU8x2YFfKNuFq161wK3cuGrALu5yiPu+vzwTAg/sMWVNeWeNyaw==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-property-in-object instead.", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-create-class-features-plugin": "^7.21.0", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5" + }, "engines": { "node": ">=6.9.0" }, @@ -1897,6 +1905,17 @@ "@babel/core": "^7.0.0-0" } }, + "node_modules/@babel/preset-env/node_modules/@babel/plugin-proposal-private-property-in-object": { + "version": "7.21.0-placeholder-for-preset-env.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", + "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==", + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, "node_modules/@babel/preset-env/node_modules/semver": { "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", diff --git a/user-frontend/package.json b/user-frontend/package.json index d33989d2c..4cb1e9382 100644 --- a/user-frontend/package.json +++ b/user-frontend/package.json @@ -10,6 +10,7 @@ "@testing-library/jest-dom": "^5.17.0", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0", + "@babel/plugin-proposal-private-property-in-object": "^7.12.1", "axios": "^1.7.7", "react": "^18.3.1", "react-dom": "^18.3.1",