Cloudflare Turnstile requires real site and secret keys tied to a registered domain. Use the official test keys documented in Cloudflare Turnstile configuration for local development.
Configure environment variables
Create a See Environment setup for the full variable reference and where to obtain each credential.
.env file in the project root with the following values:.env
Push the database schema
Run Drizzle Kit to create all tables in your PostgreSQL database:This command reads
drizzle.config.ts and applies the schema defined in server/database/schema.ts to your database.Seed the initial admin user
Create the default Super Administrator profile and user:This creates:
- Profile: Super Administrador (administrator flag: true)
- Username:
admin - Password:
admin123 - Email: admin@corporativo.com
Start the development server
Log in
Opening
http://localhost:3000 automatically redirects you to /login via the global auth middleware.Enter the seeded credentials:- Username:
admin - Password:
admin123 - CAPTCHA: complete the Turnstile widget
/principal-1 — the main dashboard. Your permissions are loaded automatically from the database.Next steps
Environment setup
Review all required environment variables and where to get them.
User management
Create additional users and assign profiles.
Permissions matrix
Configure what each profile can do in each module.
API reference
Explore the full server API documentation.