You can find the live demo at https://fire-cms-devrel-demo.web.app.
Change directory to the functions
folder:
-
Clone the project
-
Change directory to the
functions
folder:cd functions
-
Run
npm install
-
Create a service account to run locally.
To run, create a service account for the App Engine default service account and download the JSON file. Then, set the environment variable
GOOGLE_APPLICATION_CREDENTIALS
to the path of the JSON file.Example:
export GOOGLE_APPLICATION_CREDENTIALS=/Users/developer/datatalk-hackathon/sample-service-account.json
-
Go to .firebaserc and change the default project to your project id
-
Go to functions/ and copy .env.template to .env and set up the GEMINI API KEY
- You need a firebase project
- Enable and configure firebase auth
- Enable and configure firestore
- Enable and configure IAM Service Account Credentials API, https://console.developers.google.com/apis/api/iamcredentials.googleapis.com/overview?project=PROJECT_ID
- Enable Vertex AI Studio and Vertex AI API, https://console.cloud.google.com/vertex-ai/generative?referrer=search&project=PROJECT_ID and https://console.cloud.google.com/apis/library/aiplatform.googleapis.com?project=PROJECT_ID
- Add Vertex AI permissions to default service account, https://console.cloud.google.com/iam-admin/iam?project=PROJECT_ID
Run the backend locally with
npm run serve
Deploy the backend with
npm run deploy
This is the frontend for the DataTalk project. It is a React application that uses some of the components from the FireCMS project.
This project is configured with the project fire-cms-devrel-demo
but can be used with any Firebase project.
If you want to use a different project, make sure to change the Firebase config in src/firebase_config.ts
.
It is also connecting by default to the backend of this demo project, which is hosted
at https://fire-cms-devrel-demo.web.app
.
Change directory to the app
folder:
cd app
Install the dependencies:
npm i
And run the project locally:
npm run dev
Make sure you update your package.json
build
script with the correct
project name. Then run:
npm run build