Overview
This guide will walk you through installing and configuring Sistema de Seguimiento de Solicitudes on your local machine or server. The installation process involves setting up the database, configuring the API, and running the frontend application.Estimated Time: 20-30 minutesDifficulty: Intermediate - Requires familiarity with .NET development and SQL Server
Prerequisites
Before you begin, ensure your system meets the following requirements:Required Software
.NET 9.0 SDK
SQL Server
Install one of the following:
- SQL Server 2019 or later (Express, Developer, or Enterprise)
- SQL Server LocalDB
- Azure SQL Database
SQL Server Management Studio (SSMS)
Recommended for database management and import operations.Download from: SQL Server Management Studio
Visual Studio 2022 (Recommended)
Visual Studio 2022 or later with the following workloads:
- ASP.NET and web development
- .NET desktop development
Node.js (Optional)
System Requirements
| Component | Minimum | Recommended |
|---|---|---|
| OS | Windows 10, Windows Server 2016, Linux (Ubuntu 20.04+) | Windows 11, Windows Server 2022 |
| RAM | 4 GB | 8 GB+ |
| Disk Space | 2 GB | 5 GB+ |
| CPU | 2 cores | 4+ cores |
Step 1: Clone the Repository
First, clone or download the source code:Step 2: Database Setup
The application uses SQL Server as its database. Follow these steps to set it up:Import the Database
The project includes a
.bacpac file for easy database import.Using SQL Server Management Studio:- Open SQL Server Management Studio (SSMS)
- Connect to your SQL Server instance
- Right-click on Databases in Object Explorer
- Select Import Data-tier Application…
- Click Next, then Browse
- Navigate to the project folder and select
SistemaSolicitudes.bacpac - Click Next and ensure the database name is exactly:
SistemaSolicitudes - Click Next and then Finish to complete the import
The database name must be exactly
SistemaSolicitudes to match the connection string, or you’ll need to update the connection string accordingly.Verify Database Schema
After import, verify the following tables exist:Expected tables:
CalendarioDiaInhabilManualExpedientesMT_EXPEDIENTE_ARCHIVOSMT_RECURSO_REVISIONUsuarios
Step 3: Configure the API
Now configure the backend API to connect to your database:Update Connection String
Open Replace
appsettings.json and update the connection string:appsettings.json
(local) with your SQL Server instance name.Review Launch Settings
Check The API will run on:
Properties/launchSettings.json for API URLs:Properties/launchSettings.json
- HTTPS:
https://localhost:7123 - HTTP:
http://localhost:5273
You can change
launchBrowser to true to automatically open the Scalar API documentation when starting the API.Restore NuGet Packages
- Entity Framework Core 9.0.4
- JWT Bearer Authentication
- QuestPDF for PDF generation
- Scalar for API documentation
Step 4: Configure the Frontend
Configure the Blazor WebAssembly frontend application:Update API Base URL
Open This URL must match your API’s HTTPS URL from the previous step.
Program.cs and verify the HttpClient configuration:Program.cs
If you changed the API port in
launchSettings.json, update this URL accordingly.Review Launch Settings
Check The frontend will run on:
Properties/launchSettings.json for frontend URLs:Properties/launchSettings.json
- HTTPS:
https://localhost:7125 - HTTP:
http://localhost:5216
Restore NuGet Packages
- Blazor WebAssembly 9.0.4
- MudBlazor UI components
- Radzen Blazor components
- SweetAlert2 for notifications
Step 5: Run the Application
Now you’re ready to run both components:Start the API (Backend)
In the You should see output similar to:
SolicitudesAPI folder:Leave this terminal window open. The API must be running for the frontend to work.
Start the Frontend (New Terminal)
Open a new terminal window and navigate to the frontend folder:You should see:
Access the Application
Open your browser and navigate to:You should see the login page.
If you see a certificate warning, this is normal for local development. Click “Advanced” and “Proceed” to continue.
Step 6: Initial Configuration
Running with Visual Studio
If you prefer using Visual Studio:Set Multiple Startup Projects
- Right-click on the solution in Solution Explorer
- Select Properties
- Go to Startup Project
- Select Multiple startup projects
- Set both
SolicitudesAPIandSistema de Seguimiento de Solicitudesto Start - Click OK
Production Deployment
For production environments, additional steps are required:Environment-Specific Configuration
Publishing the Application
Troubleshooting
Database connection failed
Database connection failed
Error:
Cannot open database "SistemaSolicitudes" requested by the loginSolutions:- Verify database name is exactly
SistemaSolicitudes - Check SQL Server instance name in connection string
- Ensure SQL Server is running:
services.msc→ SQL Server service - Test connection in SSMS with the same credentials
- Verify firewall allows SQL Server connections (port 1433)
JWT token validation failed
JWT token validation failed
Error:
IDX10503: Signature validation failedSolutions:- Ensure
Jwt:SecretKeyis identical in both projects - Verify
IssuerandAudiencematch exactly - Clear browser localStorage and re-login
- Check token hasn’t expired (2 hour default)
CORS errors in browser console
CORS errors in browser console
Error:
Access to fetch at '...' from origin '...' has been blocked by CORS policySolutions:- Verify CORS is enabled in
Program.cs:62 - Check frontend URL matches CORS policy
- Ensure API is running before starting frontend
- Verify
UseCors("PermitirBlazor")is called beforeUseRouting()
QuestPDF license error
QuestPDF license error
Error:
QuestPDF license exceptionSolutions:- Verify
QuestPDF.Settings.License = LicenseType.Community;inProgram.cs:12 - For commercial use, obtain proper license from QuestPDF
- Ensure line is before any PDF generation code
Port already in use
Port already in use
Error:
Unable to bind to https://localhost:7123 on the IPv4 loopback interface: 'Address already in use'Solutions:- Check if another instance is running
- Find and kill the process using the port:
- Change the port in
launchSettings.json
Frontend can't connect to API
Frontend can't connect to API
Error:
TypeError: Failed to fetch or Network errorSolutions:- Verify API is running on
https://localhost:7123 - Check
Program.csBaseAddress matches API URL - Accept the SSL certificate warning in browser
- Check browser console for detailed errors
- Verify firewall allows connections to localhost
Next Steps
Now that you have the application installed and running:Quickstart Guide
Learn how to create your first transparency request
API Reference
Explore all available API endpoints
User Management
Set up roles and permissions
Security Guide
Secure your production deployment
Getting Help
If you encounter issues not covered in this guide:- Check the Troubleshooting section above
- Review the application logs in the terminal output
- Inspect browser console for frontend errors (F12)
- Verify all prerequisites are correctly installed
- Ensure database is properly imported and accessible
For development, it’s helpful to set
"launchBrowser": true in both launchSettings.json files to automatically open the applications when starting.