GDI is an eco-system for building, running and sharing AI-powered interfaces and content.
Our mission is to create a new generation of interfaces for the AI era and explore how these interfaces operate, look, and feel.
Follow these steps to get GDI up and running locally.
Begin by cloning the GDI repository and navigate into the directory:
git clone git@github.com:dht/gdi.git
cd gdi
Install the necessary dependencies using npm:
npm i
Set up Firebase for the project:
firebase init
You will need a new Firebase project at this stage. Create .env files and populate them with your Firebase project values.
Create a .env
file with the following structure:
VITE_API_KEY=your_firebase_api_key
VITE_AUTH_DOMAIN=your_firebase_auth_domain
VITE_PROJECT_ID=your_firebase_project_id
VITE_STORAGE_BUCKET=your_firebase_storage_bucket
VITE_MESSAGING_SENDER_ID=your_firebase_messaging_sender_id
VITE_APP_ID=your_firebase_app_id
VITE_MEASUREMENT_ID=your_firebase_measurement_id
VITE_BOARDS_ROOT_URL=https://raw.githubusercontent.com/dht/gdi-assets/main/boards
VITE_ASSETS_ROOT_URL=https://raw.githubusercontent.com/dht/gdi-assets/main
VITE_DOCS_ROOT_URL=https://raw.githubusercontent.com/dht/gdi/main/docs
VITE_ENABLE_ANALYTICS=false
Create a .env.development
file:
VITE_USE_EMULATOR=true
VITE_ENABLE_ANALYTICS=false
VITE_DOCS_ROOT_URL=http://localhost:3001
Finally, start the project locally:
npm start
This will launch GDI on your local development server.
To run a local instance of GDI, you will need to run the following commands:
npx @gdi/cli init my-project
cd my-project
This creates a new project in the my-project
directory. It will also init a git repository to track changes.
Update the .env
file with the needed keys.
Update the config.json
with the allowed domains.
Run:
npx @gdi/cli start
This will start a local instance of GDI. Now you can visit https//usegdi.com
and switch the "firebase" adapter to the local instance in the bottom bar.