June 2, 2021

Building a Contact Manager with Python, Flask, and HarperDB

Welcome to Community Posts
Click below to read the full article.
Summary of What to Expect
Table of Contents

  1. Create a HarperDB Cloud Instance: Sign up on HarperDB's website and create a cloud instance for the contact manager database.
  2. Set Up Database Schema: Within the cloud instance, create a schema named "contacts_repo" to store tables.
  3. Create Table: Create a table named "contacts" within the "contacts_repo" schema with a unique identifier "contact_id".
  4. Clone Contact Manager Repository: Clone the contact manager repository from GitHub and initialize the app.
  5. Install Requirements: Install the required dependencies for the contact manager app.
  6. Configure HarperDB Python SDK: Import and initialize the HarperDB Python SDK with your instance's authentication credentials.
  7. Test Database Connection: Test the connection to HarperDB cloud instance by querying the database for its description.
  8. Insert New Documents: Use the Python SDK to insert new contact information into the "contacts" table.
  9. Fetch and Display Records: Use the Python SDK to fetch contact data from HarperDB and display it on the contact manager's user interface.
  10. Update Documents: Implement functionality to update contact information in HarperDB using the Python SDK.
  11. Delete Documents: Implement functionality to delete contact information from HarperDB using the Python SDK.