In this tutorial, we are going to be building a simple movie generator which automatically generates a new movie every 40 seconds. It will also contain a button called “Generate New Movie” to display another movie on demand.
- Sign up for HarperDB Cloud Instance: Create an account, providing your name, email, and sub-domain name.
- Set up HarperDB Cloud Instance: Choose instance name, credentials, specifications, and region.
- Create React App: Use "npx create-react-app" to initialize the project.
- Install use-harperdb Hook: Add "use-harperdb" hook for connecting to the cloud instance.
- Set Up Environment Variables: Define credentials in the .env file.
- Wrap App with HarperDBProvider: Connect the app to the cloud instance.
- Populate the Database: Create a schema and table for movie data using HarperDB Studio.
- Build the User Interface: Create a Movie component to fetch and display movie data.
- Display Data in the Front End: Show movie information using data from HarperDB.
- Run the App: Start the development server to see the app in action.