From fa136f8013f2ebb9dcc95feca74201ff5a58b146 Mon Sep 17 00:00:00 2001 From: Max Sveshnikov Date: Sun, 17 Mar 2024 08:16:36 +0100 Subject: [PATCH] SSH --- .github/workflows/ci-cd.yaml | 4 ++++ README.md | 12 +++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-cd.yaml b/.github/workflows/ci-cd.yaml index 613f8879..d73c5405 100644 --- a/.github/workflows/ci-cd.yaml +++ b/.github/workflows/ci-cd.yaml @@ -40,6 +40,10 @@ jobs: env: SSH_KEY: ${{ env.SSH_KEY }} run: | + mkdir -p ~/.ssh/ + echo "$SSH_KEY" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + ssh-keyscan -H ${{ env.SSH_HOST }} >> ~/.ssh/known_hosts ssh ${{ env.SSH_USER }}@${{ env.SSH_HOST }} ' docker pull ${{ env.DOCKER_USERNAME }}/${{ env.BACKEND_IMAGE_NAME }} docker pull ${{ env.DOCKER_USERNAME }}/${{ env.FRONTEND_IMAGE_NAME }} diff --git a/README.md b/README.md index 760b7257..4a033ccc 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,11 @@ # FREECHAT -Node.js backend and a React MUI frontend for an application that interacts with the Gemini Pro model, with history, image painting via Amazon Titan and markdown support. Written fully by *Claude 3 Sonnet*. +Node.js backend and a React MUI frontend for an application that interacts with the Gemini Pro model, with history, image painting via Amazon Titan and markdown support. Written fully by _Claude 3 Sonnet_. ![image](https://github.com/msveshnikov/freechat/assets/8682996/42b2e4f2-b91b-4712-8ef2-630ebb8919e9) ## Demo + https://allchat.online/ **Backend (Node.js)** @@ -23,6 +24,15 @@ https://allchat.online/ 5. Implement the logic for sending HTTP requests to the Node.js backend and handling the responses. 6. Integrate the MUI components with the application logic to create a visually appealing and user-friendly interface. +## Environment variables + +You have to get those APIs and set environment variables (or put to .env file): + +- GOOGLE_KEY - key of Google Cloud Project with Vertex AI enabled +- google.json - https://console.cloud.google.com/apis/credentials/key +- AWS_SECRET_KEY +- AWS_ACCESS_KEY - Titan - https://eu-central-1.console.aws.amazon.com/console/home?region=eu-central-1 + **Example Code** Here's a basic example to get you started: