This project combines Google's Interactive Canvas with ReactJS to create a bot that will tell you what are the bestsellers on the New York Times' list.
Simply because at the time of writing this, there's 0 tutorials on how to connect ReactJS to Interactive Canvas! And so I decided to create something simple enough for anyone to get started with it.
This project will receive minimal maintenance. There'll be no feature requests and will unlikely to acknowledge pull requests unless it's to fix security issues.
If you'd like a full walk-through of this bot, here's the tutorial to follow:
- Part 1: https://celiaongsl.medium.com/building-a-google-assistant-with-interactive-canvas-and-reactjs-part-1-5e290eccfdbd
- Part 2: https://celiaongsl.medium.com/building-a-google-assistant-with-interactive-canvas-and-reactjs-part-2-3aa88584d4cd
- Part 3: https://celiaongsl.medium.com/building-a-google-assistant-with-interactive-canvas-and-reactjs-part-3-5eaa14f48b6c
The Welcome Page:
The List of Books Page:
The Book Details Page:
This starts the front-end application and opens up into http://localhost:3000.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
In order to deploy your webapp to firebase, you can do 2 methods:
This will deploy both your hosting and functions. Usually you'll only need to run this when you initialize the project.
This will only deploy your hosting. Use this if you made changes to your webapp view.
Make sure you're inside your sdk
folder first before you run any of these commands.
Whenever you make changes inside the sdk
folder, make sure to push it to your Actions on Google to sync it.
Do this if you need to initialise your project folder with what you have on your Actions on Google console.
Do this if you need to update your local files with the changes you made on Actions on Google.
Add a clean
tag if you require removal of files.