Prerequisites
Before you begin, ensure:- CONFOR is installed and running (see Installation)
- You can access the application at
http://localhost:3000(or your configured URL) - PostgreSQL database is running and migrated
Getting Started
This guide will walk you through creating your first account, logging in, and setting up your initial forest patrimony structure.Register Your Account
Navigate to the registration page and create your account:Fill in the registration form:The system will respond:
Upon registration, your account will be in PENDING_VERIFICATION status. A default organization “Por defecto” is automatically created and assigned to your user with a USER role.
Activate Your Account (Development)
For development environments, you can use the seeded admin account to activate your user:Seeded Admin Credentials:Find your user and update the status from
- Email:
[email protected] - Password:
Admin1234
PENDING_VERIFICATION to ACTIVE.Login to Your Account
Once activated, login with your credentials:The system uses NextAuth v5 with credentials provider. Successful login creates a session and redirects you to the dashboard.
Navigate to Forest Patrimony
From the dashboard, navigate to the Forest Patrimony module:You’ll see a 5-tab interface:
- Nivel 2 - Properties (Finca/Predio/Hato/ABRAE)
- Nivel 3 - Compartments (Lote/Compartimiento/Block)
- Nivel 4 - Stands (Rodal/Parcela/Enumeration)
- Nivel 5 - Plots (Subunidad/Subparcela/Muestra)
- Colindantes - Neighbors
Create Your First Finca (Level 2)
Create a top-level property:Click Crear to submit.The API endpoint:
- Click the Nivel 2 tab
- Fill in the creation form:
Create a Lote (Level 3)
Now create a compartment within your Finca:API call:
- Select your newly created Finca from the Nivel 2 list
- Click the Nivel 3 tab
- Fill in the form:
Level 3 codes must be unique within their parent Level 2. The system enforces this with a compound unique index:
[level2Id, code]Create a Rodal (Level 4)
Create a stand within your Lote:
- Select your Lote from the Nivel 3 list
- Click the Nivel 4 tab
- Complete the form:
Add Neighbors (Optional)
Document adjoining properties for your Finca:API endpoint:
- Select your Finca in Nivel 2
- Click the Colindantes tab
- Add neighbor information:
Next Steps
Now that you have your basic forest structure set up:Upload Shapefiles
Import geospatial data for Level 4 stands with automatic area calculation
Biological Assets
Track tree inventory, volume, and growth metrics at Level 6
User Management
Add team members and configure role-based access control
API Reference
Integrate CONFOR with your existing systems via REST API
Common Operations
Editing Records
Click the edit icon on any row to modify:Deactivating vs Deleting
Prefer settingisActive: false over deletion to maintain historical records:
Exporting Data
csv, xlsx
Troubleshooting
Can’t Create Level 3 Unit
Error: “Nivel 2 requerido” Solution: Ensure you have selected a parent Level 2 (Finca) from the list before attempting to create Level 3.Duplicate Code Error
Error: “El código ya existe” Solution: Codes must be unique within their scope. Level 2 codes are globally unique per organization. Level 3-5 codes must be unique within their parent.Import Fails with Geometry Errors
Error: “Geometrías inválidas” Solution: Ensure your shapefiles contain valid polygon geometries and include a .prj file with proper CRS definition. The system will attempt to transform to EPSG:4326.Get Help
For additional assistance:- Check the complete Installation Guide for environment setup
- Review the API Reference for programmatic access
- Contact your system administrator for organization-specific configurations