Skip to content

Commit

Permalink
SSH
Browse files Browse the repository at this point in the history
  • Loading branch information
msveshnikov committed Mar 17, 2024
1 parent 375107e commit fa136f8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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)**
Expand All @@ -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:
Expand Down

0 comments on commit fa136f8

Please sign in to comment.