Configuration

Configure the environment variables and database schema required for Kairos to function.

Database Structure

In your Appwrite Console, create a database named "core". Then create the following collections:

users_metadata

Stores user tokens and preferences.

user_id (string)refresh_token (string)write_calendar_id (string)read_calendar_ids (string[] or string)

events

Local cache of calendar events.

event_id (string)user_id (string)summary (string)start_time (string)end_time (string)status (string)

Environment Variables

cortex/.env
APPWRITE_ENDPOINT=http://localhost/v1
APPWRITE_PROJECT_ID=65c...
APPWRITE_API_KEY=...

# Google OAuth
GOOGLE_CLIENT_ID=...
GOOGLE_CLIENT_SECRET=...
prism/.env.local
NEXT_PUBLIC_APPWRITE_ENDPOINT=http://localhost/v1
NEXT_PUBLIC_APPWRITE_PROJECT_ID=65c...