A demo app to show how to use Firebase, Flutter, and the PaLM API to create a customizable chat bot using TDD Clean Architecture with BLoc.
A few resources to get you started if this is your first Flutter project:
- Lab: Write your first Flutter app
- Cookbook: Useful Flutter samples
- BLoc: Flutter Bloc State Managment
- Cookbook: Flutter Testing
- Clone this repo into your local directory
- Setup Firebase project
- In the Firebase console, enable Cloud Firestore
- Install the Chatbot with PaLM API extension
- Install dependencies
flutter pub get
✨ Enjoy!
In a TDD approach, when testing a class we need to figure out the answer to theses 3 questions:
- What does the class depend on
- How can we create a fake version of the dependency (dependencies)
- How do we control what the deps is (are) doing?
In a TDD process, we should consider three main stages:
- Arrange
- Act
- Assert
In a TDD approach, we should CODE AGAINST THE TEST (RED)