Documentation Index
Fetch the complete documentation index at: https://mintlify.com/4rt21/backend-proyecto/llms.txt
Use this file to discover all available pages before exploring further.
Welcome to FalconAlert API
FalconAlert is a powerful NestJS-based backend API for fraud reporting and community moderation. It provides a complete solution for users to report fraudulent websites, moderate content, and protect communities from online scams.What is FalconAlert?
FalconAlert enables users to:- Report fraudulent websites with detailed information and evidence
- Upvote reports to increase visibility of dangerous sites
- Track report status through pending, approved, and rejected states
- Receive real-time notifications via WebSocket connections
- Manage user profiles with customizable settings
- Moderate content through an admin dashboard
Key Features
User Management
Complete user registration, authentication, and profile management with JWT-based security
Fraud Reports
Create, update, and categorize fraud reports with image uploads and status tracking
Community Protection
Upvote system to protect people from fraudulent sites and increase report visibility
Real-time Updates
WebSocket gateway for instant report notifications and updates
Admin Dashboard
Comprehensive dashboard with analytics, user management, and report moderation
File Uploads
Support for profile pictures and report evidence images stored locally
Architecture Overview
FalconAlert is built on modern, reliable technologies:- Framework: NestJS 11.x - A progressive Node.js framework
- Language: TypeScript - Type-safe development
- Database: MySQL 8.0+ via mysql2 driver
- Authentication: JWT with access and refresh tokens
- API Documentation: Swagger UI at
/docs - Validation: class-validator and class-transformer
- Real-time: Socket.IO for WebSocket connections
Core Modules
The API is organized into feature modules:Authentication System
FalconAlert uses a dual-token JWT authentication system:- Access Tokens: Short-lived (1 hour) tokens for API requests
- Refresh Tokens: Long-lived (7 days) tokens for renewing access
- Role-based Access: Separate endpoints for mobile (role_id: 1) and web (role_id: 2) users
API Documentation
Once the server is running, you can explore the interactive API documentation:- Swagger UI:
http://localhost:3000/docs - OpenAPI Spec: Available at
/swagger.json
- All available endpoints
- Request/response schemas
- Example payloads
- Authentication requirements
- Error responses
The API runs on port 3000 by default, configurable via the
PORT environment variable.Response Format
All API responses follow consistent patterns: Success Response:Getting Help
If you encounter issues or have questions:- Check the Quickstart Guide for setup instructions
- Review the Authentication Guide for JWT implementation
- Explore the Swagger documentation at
/docs - Review the source code on GitHub
Quickstart
Get started with FalconAlert in minutes
Authentication
Learn how to authenticate API requests