feat: add complete integration tutorial with Node.js backend and React frontend#54
feat: add complete integration tutorial with Node.js backend and React frontend#54
Conversation
Migrate complete Integration Tutorial from legacy GitBook to Mintlify, converting all 19 external image URLs to local webp assets for improved performance and reliability. Content Migration: - Port full Integration Tutorial content from /request-network-api/integration-tutorial - Backend setup: Fastify + Drizzle + SQLite configuration with complete code - Frontend implementation: React + Vite + wagmi wallet integration - Webhook handling with signature verification examples - Step-by-step walkthrough from API key creation to payment confirmation Format Conversions: - Convert GitBook <figure> tags to Mintlify <Frame> components - Transform markdown image syntax to JSX <img> tags for MDX compatibility - Remove angle brackets around URLs to prevent JSX parsing errors - Add frontmatter (title, description) for Mintlify page structure Image Localization: - Download and convert all 19 tutorial screenshots to webp format - Organize images in images/api-setup/integration-tutorial/ directory - Replace all external gitbook.io URLs with local paths - Images included: folder-structure, api-portal steps, database-studio, ngrok-terminal, webhook steps, vite-setup, UI components, wallet states, payment flows, and confirmation screenshots Navigation: - Add Integration Tutorial to docs.json API Setup section - Position between Getting Started and API Portal docs for logical flow Performance: - Eliminate external image dependencies (19 GitBook URLs removed) - Reduce page load times with local webp assets - Enable offline documentation viewing All content preserved exactly from legacy docs with only necessary format conversions for Mintlify compatibility.
Greptile SummaryThis PR adds a comprehensive integration tutorial migrated from legacy GitBook documentation to Mintlify. The tutorial provides a complete end-to-end walkthrough for building a payment application using Request Network API with Node.js backend (Fastify + Drizzle + SQLite) and React frontend (wagmi wallet integration). Key additions:
Issues found:
The tutorial content is well-structured and follows most Mintlify best practices, but the missing import is a critical issue that will prevent the code from running. Confidence Score: 3/5
Important Files Changed
Last reviewed commit: 5746dae |
| // src/index.ts | ||
| import 'dotenv/config'; | ||
| import Fastify, { FastifyRequest, FastifyReply } from 'fastify'; | ||
| import { db } from './db'; | ||
| import { payments } from './db/schema'; |
There was a problem hiding this comment.
Missing import for eq function from drizzle-orm
The code uses eq() on lines 297 and 594 but never imports it. Add this import:
| // src/index.ts | |
| import 'dotenv/config'; | |
| import Fastify, { FastifyRequest, FastifyReply } from 'fastify'; | |
| import { db } from './db'; | |
| import { payments } from './db/schema'; | |
| // src/index.ts | |
| import 'dotenv/config'; | |
| import Fastify, { FastifyRequest, FastifyReply } from 'fastify'; | |
| import { db } from './db'; | |
| import { payments } from './db/schema'; | |
| import { eq } from 'drizzle-orm'; |
| The final result should look something like this with the wallet connection working. | ||
|
|
||
| <Frame> | ||
| <img src="/images/api-setup/integration-tutorial/wallet-conencted.webp" alt="Wallet connected" /> |
There was a problem hiding this comment.
Typo in image filename reference
| <img src="/images/api-setup/integration-tutorial/wallet-conencted.webp" alt="Wallet connected" /> | |
| <img src="/images/api-setup/integration-tutorial/wallet-connected.webp" alt="Wallet connected" /> |
| <img src="/images/api-setup/integration-tutorial/payment-confirmed.webp" alt="Payment confirmed" /> | ||
| </Frame> | ||
|
|
||
| This is it, you have succesfully built a basic application integrating our API to move actual test funds between two wallets. |
There was a problem hiding this comment.
Spelling error
| This is it, you have succesfully built a basic application integrating our API to move actual test funds between two wallets. | |
| This is it, you have successfully built a basic application integrating our API to move actual test funds between two wallets. |
|
|
||
| ``` | ||
| // .env | ||
| RN_API_KEY=<insert-you-api-key> |
There was a problem hiding this comment.
Typo in placeholder: "insert-you-api-key" should be "insert-your-api-key"
Additional Comments (1)
|

TL;DR
Added a comprehensive integration tutorial that walks developers through building a complete payment application using Request Network API with Node.js backend and React frontend.
What changed?
Created a new integration tutorial (
api-setup/integration-tutorial.mdx) that provides:/v2/payoutsAdded supporting images showing UI components, API portal screenshots, database views, and transaction signing flows.
How to test?
Why make this change?
This tutorial addresses the need for comprehensive developer onboarding by providing a complete, working example that demonstrates:
The tutorial bridges the gap between basic API documentation and practical implementation, giving developers a solid foundation to build upon.