Overview
This guide provides step-by-step instructions on how to run the Mailchimp example. This example demonstrates how to integrate Graphweaver with Mailchimp to manage lists and categories.
Prerequisites
Before you begin, ensure that you have the following prerequisites:
- Node.js 18 or greater installed
pnpm
version 8 or greater installed
Getting Started:
Step 1: Clone the Repository
git clone https://github.com/exogee-technology/graphweaver.git
cd graphweaver/src
Step 2: Install NPM Dependencies
pnpm i
Step 3: Build the Monorepo
pnpm build
Step 4: Navigate to the Mailchimp Folder
cd examples/mailchimp
Step 5: Set Up Environment Variables
Create a .env
file in the Mailchimp example folder and set the following variables:
MAILCHIMP_API_KEY=your_mailchimp_api_key
MAILCHIMP_SERVER_PREFIX=us16
MAILCHIMP_LIST_ID=your_mailchimp_list_id
MAILCHIMP_PROJECTS_CATEGORY_ID=your_mailchimp_category_id
MAILCHIMP_API_KEY
: Generate an API key by navigating to the API Keys section of your Mailchimp account, clicking "Create New Key," and copying the generated key to the clipboard.MAILCHIMP_SERVER_PREFIX
: The root URL for the Mailchimp API is in the formathttps://<dc>.api.mailchimp.com/3.0/
, where<dc>
is the prefix.MAILCHIMP_LIST_ID
: The unique ID for the list object in Mailchimp.MAILCHIMP_PROJECTS_CATEGORY_ID
: The unique ID for the category object in Mailchimp.
Step 6: Run Graphweaver
pnpm start
Step 7: Access Graphweaver Dashboard
Once the Graphweaver CLI is started, open your web browser and navigate to http://localhost:9000/
to access the Graphweaver dashboard.
Conclusion
Congratulations! You have successfully set up and executed the Mailchimp Integration example using Graphweaver. Explore the Graphweaver dashboard to manage Mailchimp lists and categories seamlessly. For any issues, refer to the troubleshooting section or check the project's GitHub repository for additional information.