Enable User Feedback in Writerside Using TiDB Cloud and Cloudflare Pages
I am currently using Writerside, a new Integrated Development Environment (IDE) designed for technical writers, to create and develop the documentation website for my side project, PingCAP Docsite Preview. Throughout my experience with Writerside, I discovered an undocumented feature: a feedback module. I have utilized Cloudflare Pages Functions and TiDB Cloud Data Service to process the feedback received through this module and store it in the database.
This guide provides step-by-step instructions for integrating a feedback module into your website. It utilizes Writerside, Cloudflare Pages Functions, and TiDB Cloud Data Service for this integration. This will enable you to collect valuable user feedback directly through your website.
View the demo code: writerside-feedback-example
Try the feedback widget: Feedback example page
Prerequisites
- A Writerside project. If you do not have one yet, see Create Writerside project and deploy it to Cloudflare Pages.
- A TiDB Cloud cluster.
- A Cloudflare account.