testing-local-backend

Run the Flask server and test SDR/Z-API webhook endpoints locally.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/freddomingues/think-tars --skill testing-local-backend
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-local-backend
Source: https://github.com/freddomingues/think-tars/tree/main/.cursor/skills/testing-local-backend
Command: npx skills add https://github.com/freddomingues/think-tars --skill testing-local-backend

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Este Skill orienta desenvolvedores a subir o backend localmente, testar endpoints SDR/Z-API, demonstrar fluxos e validar novas implementações de forma isolada e rápida.

Core Features & Use Cases

  • Subir o backend localmente com configuração simples e logs acessíveis.
  • Testar endereços SDR/Z-API e fluxos de webhook em ambiente de desenvolvimento.
  • Validar rotas de demos e fluxos de integração antes de migrar para staging ou produção.

Quick Start

Suba o backend no diretório raiz do projeto com PythonPath/venv configurados. Em seguida, acesse http://127.0.0.1:5004 para as APIs de demonstrações e testes. Para simular o webhook SDR sem Z-API, envie: curl -X POST http://127.0.0.1:5004/api/zapi/test-webhook
-H "Content-Type: application/json"
-d '{"phone":"554187497364","message":"Olá, quero saber sobre IA"}' Para testar o webhook real, envie o payload para /api/zapi/webhook conforme o formato descrito em logs.

Frequently Asked Questions about testing-local-backend

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test a Z-API webhook locally with Flask?

You can test a Flask backend locally by running the server at http://127.0.0.1:5004 and using curl to send POST requests with JSON payloads to the /api/zapi/test-webhook endpoint, simulating SDR workflows without needing external services.

Can I simulate SDR webhook workflows without an external Z-API connection?

Yes, you can simulate SDR webhook workflows locally by sending a curl POST request to the /api/zapi/test-webhook endpoint, replicating Z-API payloads without requiring external services beyond local network access.

What do I need to run a Python Flask backend locally for endpoint testing?

You need standard Python tooling with PythonPath and venv configured in the project root directory, plus the project's local configuration. No external services are required, only local network access to run the Flask server.

How do I validate demo playground routes in a local development environment?

You validate demo playground routes by starting the Flask server and accessing the demonstration APIs at http://127.0.0.1:5004, allowing you to verify integration flows and new implementations in an isolated environment before migrating to staging.

Does testing backend endpoints locally require external services or network access?

Testing backend endpoints locally requires no external services, only local network access. The Flask server runs isolated on your machine, simulating SDR and Z-API webhook workflows entirely within your development environment.

Why test backend integrations locally before migrating to staging?

Testing backend integrations locally before staging allows you to validate routes, webhook flows, and new implementations quickly in an isolated environment, catching errors early without affecting shared staging or production environments.