Skip to content

pulkitgovrani/PersonalEarthAssistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Personal Earth Assistant

Vite + React SPA with an Express API: Auth0 login (JWT + audience), Gemini on the server only, SQLite profile + chat history keyed by Auth0 sub. Built for the DEV Weekend Challenge: Earth Day Edition.

Quick start (local)

  1. Auth0

    • Create a Single Page Application client.
    • Create an API with an identifier (e.g. https://personal-earth-api) — this value is your audience.
    • Under the API, authorize the SPA client if required by your tenant defaults.
    • Application URLs (dev): Callback, Logout, and Allowed Web Origins → http://localhost:5173.
  2. Google AI Studio

    • Create an API key for the Gemini API (server-side only).
  3. Env files

  4. Run

    npm install
    npm run dev

Production build (single Node process)

npm run build
npm start

Serves the Vite build from server/public and the API on the same port (default 3000). Set CLIENT_ORIGIN to your public URL (comma-separated for multiple).

Auth0 for Agents note

This MVP demonstrates human identity (SPA JWT), server-side secrets (Gemini key never in the browser), and tool execution (Gemini update_user_habits → SQLite) scoped by sub. For a submission, add your Auth0 for Agents–specific flow (e.g. agent credentials / MCP) per Auth0 docs and describe it in your DEV post.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages