Overview
This guide will walk you through setting up Guccho from initial configuration to running your development server.Make sure you’ve completed the installation steps before proceeding.
Configuration Setup
Guccho requires two main configuration files: one for the UI and one for the backend.Create UI configuration
Copy the example UI configuration file:Edit
guccho.ui.config.ts to customize your frontend settings:guccho.ui.config.ts
Create backend configuration
Copy the example backend configuration file:Edit
guccho.backend.config.ts to match your backend setup:guccho.backend.config.ts
Set up environment variables
Create a Edit
.env file using the example as a template:.env with your environment-specific values:.env
Running Guccho
Development Server
Start the development server onhttp://localhost:3000:
Production Build
For production deployment, build the application first:Configuration Options Explained
Environment Variable Helpers
Guccho provides two helper functions for environment variables:env(name): Required variable. Throws an error if not set.safeEnv(name): Optional variable. Returnsundefinedif not set.
Path Resolution
Always useresolve() for file paths to ensure they work regardless of where Guccho is started from:
Troubleshooting
Error: DB_DSN is required
Error: DB_DSN is required
Make sure you’ve set the
DB_DSN environment variable in your .env file:Cannot connect to Redis
Cannot connect to Redis
If using Redis for sessions or leaderboards, ensure Redis is running:Alternatively, use
sessionStore: 'memory' in guccho.backend.config.ts for development.Module not found errors
Module not found errors
Try reinstalling dependencies:
Next Steps
Backend Configuration
Learn about advanced backend configuration options
UI Configuration
Customize your UI and branding
Features
Explore Guccho’s features
Architecture
Understand the system architecture