This guide walks you through spinning up a complete local API-HUB environment: PostgreSQL and n8n in Docker, the FastAPI backend in a Python virtual environment, and the Next.js admin UI. By the end you will have a working import pipeline and a seeded catalog you can browse immediately.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/VisualGraphxLLC/API-HUB/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Make sure the following tools are installed before you begin.Docker Desktop
Required for PostgreSQL 16 and the n8n automation engine. Any recent version works.
Python 3.12
The backend requires exactly Python 3.12. Use
pyenv or your system package manager.Node.js 20+
Required for the Next.js 15 admin UI and the n8n-nodes-onprintshop package build.
Step 1: Clone and configure environment variables
Step 2: Start the database and n8n
- Services only (recommended for development)
- Full Docker stack
Start only PostgreSQL and n8n, and run the backend and frontend directly on your host machine. This gives you faster hot reloads and easier debugging.Verify both containers are healthy:
Step 3: Start the FastAPI backend
Application startup complete, confirm it is healthy:
Step 4: Start the Next.js frontend
Open a new terminal:http://localhost:3000.
Step 5: Seed demo data
With the backend running, seed the database with demo suppliers and sample products:- Two demo suppliers (one PromoStandards SOAP, one REST)
- A sample customer with a default markup rule
- A small set of apparel and print catalog products
Seeded credentials are synthetic and do not connect to any live supplier API. Use them to explore the UI and test import flows without incurring real API calls.
Step 6: Trigger your first catalog import
With demo suppliers seeded, trigger a small catalog import to see the full pipeline in action. Replace1 with the ID of a seeded supplier visible in the admin UI at http://localhost:3000/suppliers.
Verify your setup
After the import completes, check these three surfaces to confirm everything is working end-to-end.Admin UI
Browse suppliers, products, customers, and sync job history at localhost:3000.
API health
The FastAPI health endpoint returns
{"status":"ok"} when the backend and DB are reachable.n8n dashboard
Inspect workflow executions and cron schedules in the n8n UI at localhost:5678.
Run the test suite
- Backend
- Frontend
- End-to-end
Next steps
Architecture deep dive
Understand how all four systems connect, which routes exist, and why n8n owns external API calls.
Add a real supplier
Connect a live PromoStandards or REST supplier using the admin UI — no code required.
Configure pricing markup
Set per-customer markup rules and test them with the live quote endpoint.
Set up OPS push
Configure the n8n ops-push workflow to sync products into OnPrintShop storefronts.