8000 GitHub - briansrls/the-circle
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

briansrls/the-circle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

the-circle

Inspo: dining philosophers

Enjoy!

Frontend (React + Vite)

The frontend is a React application built with Vite, located in the frontend/ directory.

Running the Frontend Development Server

  1. Navigate to the frontend directory:
    cd frontend
  2. Install dependencies:
    npm install
  3. Compile Protocol Buffers (if you modified .proto files):
    npm run compile:proto
  4. Run the development server:
    npm run dev
    The application should now be accessible in your browser (usually at http://localhost:5173).

Frontend Environment Variables (API Keys)

To provide a default API key for services like Gemini, you can use an environment file:

  1. Create a new file named .env in the frontend/ directory (i.e., frontend/.env).

  2. Add your API key to this file, prefixed with VITE_. For example, for a default Gemini API key:

    VITE_DEFAULT_GEMINI_API_KEY="YOUR_GEMINI_API_KEY_HERE"
    

    Replace "YOUR_GEMINI_API_KEY_HERE" with your actual API key.

    Note: The frontend/.env file is ignored by Git (as configured in frontend/.gitignore) to prevent accidental commitment of sensitive keys. You can create a frontend/.env.example file if you want to provide a template for other developers.

    If an API key is provided directly in an agent's configuration form in the UI, it will take precedence over the default key from the .env file for that specific agent.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0