Skip to content

nenaddedic/nenaddedic.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Components

flowchart LR;
    client[React web client; source: client/**]
    service[our gateway service running on Google Cloud Functions; source: server/**]
    GenAI[Google Cloud GenAI service]
    user[user's browser]
    
    user-->|HTTP request|client;
    client-->|cloud functions call, HTTP|service;
    service-->|GenAI API call|GenAI;
Loading

Configuration

Environment files are in Dotenv format, that is each line contains an assignment like VITE_GATEWAY_SERVICE_URL=http://localhost:5566.

Client (React web page) configuration:

  • client/.env.local
    • VITE_GATEWAY_SERVICE_URL: gateway service address to use with locally deployed web client, e.g. http://localhost:5566
  • client/.env.production
    • VITE_GATEWAY_SERVICE_URL: gateway service address to use with web client deployed on Github pages, e.g. https://us-central1-myGoogleCloudProject.cloudfunctions.net/testFn

Server (our gateway service) configuration:

  • server/.env.development.local
    • VITE_GEMINI_API_KEY: Google Cloud API key for GCP GenAI service, used with locally deployed gateway service
  • server/.env
    • VITE_GEMINI_API_KEY: Google Cloud API key for GCP GenAI service, used with gateway service deployed to Google Cloud Functions
  • server/.env.yaml: keep this synchronized with server/.env but in YAML format, e.g. "VITE_GEMINI_API_KEY": "xyz"

About

github.io page

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors