A demo app to show how to use Firebase, Angular, and the PaLM API to create a customizable chat bot.
- Create a Firebase project
- Register a new web app with Firebase Hosting
- In the Firebase console, enable Cloud Firestore
- Install the Chatbot with PaLM API extension
- Clone this repo into your local directory
npm install
to install dependencies- Add the web app config object from the Firebase console in
src/environments/environment.ts
andsrc/environments/environment.development.ts
files. - Use the Angular CLI to run
ng add @angular/fire --project=[YOUR PROJECT_NAME]
ng deploy
to compile your project and deploy to your hosting URL
Your chatbot is deployed to Firebase, and ready to use!
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The application will automatically reload if you change any of the source files.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory.
Run ng deploy
to deploy the project to your hosting website. Navigate to the provided Hosting URL to try out your chatbot.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.