"The interface to manage your lies."
ImpostAPI Frontend is the visual control panel for interacting with the ImpostAPI Backend engine. Forget about manually inserting data into the database or using cURL; this interface allows you to create, edit, and manage your simulated endpoints (Mocks) intuitively and quickly.
The dashboard allows developers and QAs to:
- 📝 Visual Endpoint Management: Create, edit, and delete your mock routes (
/mock/my-route) without touching code. - ⚡ Latency Configuration: Define visual sliders to simulate "lag" or slow loading times on specific responses.
- 🎨 Integrated JSON Editor: Write the response body with syntax highlighting and JSON format validation.
- 🚦 HTTP Status Control: Dropdown selector to force 200, 404, 500, etc., responses with a single click.
- 🔍 Search & Filters: Quickly find that specific mock among dozens of definitions.
- UI Library: React (via Vite)
- Styles: TailwindCSS / ShadcnUI
- State Management: React Context
- Code Editor: VSCode
- Language: TypeScript / JavaScript
- Node.js (v18 or higher)
- Have the ImpostAPI Backend running locally or on a remote server.
git clone https://github.com/YarielZC/impostapi-front.git
cd impostapi-frontnpm install
# or if you use pnpm / yarn:
pnpm install
yarn installCreate a .env file in the project root. You can use .env.template as a guide:
# URL where your ImpostAPI backend is running
VITE_BASE_URL=http://localhost:8000npm run devThe application will generally be available at: http://localhost:5173
For this Frontend to work correctly, ensure the ImpostAPI Backend is active. If running both locally:
- Backend:
http://localhost:8000(FastAPI) - Frontend:
http://localhost:5173(Vite)
Note on CORS: If you have connection issues, ensure the Backend has
CORSconfigured to allow your frontend's origin. It is enabled by default.
Want to improve the interface or add dark mode? You are welcome!
- Fork the project.
- Create your feature branch (
git checkout -b feature/NewDesign). - Commit your changes (
git commit -m 'Improved form UX'). - Push to the branch (
git push origin feature/NewDesign). - Open a Pull Request.
"La interfaz para gestionar tus mentiras."
ImpostAPI Frontend es el panel de control visual para interactuar con el motor de ImpostAPI Backend. Olvídate de insertar datos manualmente en la base de datos o usar cURL; esta interfaz te permite crear, editar y gestionar tus endpoints simulados (Mocks) de manera intuitiva y rápida.
El dashboard permite a los desarrolladores y QAs:
- 📝 Gestión Visual de Endpoints: Crea, edita y elimina tus rutas mock (
/mock/mi-ruta) sin tocar código. - ⚡ Configuración de Latencia: Define sliders visuales para simular "lag" o tiempos de carga lentos en respuestas específicas.
- 🎨 Editor de JSON Integrado: Escribe el cuerpo de la respuesta (Body) con resaltado de sintaxis y validación de formato JSON.
- 🚦 Control de Estados HTTP: Selector desplegable para forzar respuestas 200, 404, 500, etc., con un solo clic.
- 🔍 Buscador y Filtros: Encuentra rápidamente ese mock específico entre docenas de definiciones.
- Librería UI: React (vía Vite)
- Estilos: TailwindCSS / ShadcnUI
- Gestión de Estado: React Context
- Editor de Código: VSCode
- Lenguaje: TypeScript / JavaScript
- Node.js (v18 o superior)
- Tener el Backend de ImpostAPI corriendo localmente o en un servidor remoto.
git clone https://github.com/YarielZC/impostapi-front.git
cd impostapi-frontnpm install
# o si usas pnpm / yarn:
pnpm install
yarn installCrea un archivo .env en la raíz del proyecto. Puedes basarte en el .env.template:
# URL donde está corriendo tu backend de ImpostAPI
VITE_BASE_URL=http://localhost:8000npm run devLa aplicación estará disponible generalmente en: http://localhost:5173
Para que este Frontend funcione correctamente, asegúrate de que el Backend de ImpostAPI esté activo. Si estás corriendo ambos en local:
- Backend:
http://localhost:8000(FastAPI) - Frontend:
http://localhost:5173(Vite)
Nota sobre CORS: Si tienes problemas de conexión, asegúrate de que el Backend tenga configurados los
CORSpermitiendo el origen de tu frontend. Por defecto lo tiene.
¿Quieres mejorar la interfaz o añadir modo oscuro? ¡Eres bienvenido!
- Haz un Fork del proyecto.
- Crea tu rama (
git checkout -b feature/NuevoDiseño). - Haz Commit (
git commit -m 'Mejorada la UX del formulario'). - Haz Push (
git push origin feature/NuevoDiseño). - Abre un Pull Request.
Distribuido bajo la Licencia MIT. Ver el archivo LICENSE para más información.