Modelence provides flexible configuration options for your application. You can configure your app through theDocumentation Index
Fetch the complete documentation index at: https://docs.modelence.com/llms.txt
Use this file to discover all available pages before exploring further.
startApp() function, environment variables, and Modelence Cloud settings.
Configuration Methods
There are three ways to configure your Modelence application, listed in order of precedence:- Environment Variables - Highest priority, overrides everything
- Modelence Cloud - Synced configuration from cloud.modelence.com
- startApp() Options - Direct code configuration, lowest priority
Basic Configuration with startApp()
ThestartApp() function is your application’s entry point where you configure core settings:
src/server/app.ts
Environment Variables
Environment variables provide a way to configure your application without hardcoding values. They override all other configuration methods.Core Environment Variables
.modelence.env
.modelence.env file with your cloud connection token.
Next Steps
Authentication
Configure authentication and user management
Email Setup
Set up email providers for transactional emails
Roles & Permissions
Define user roles and permissions
WebSockets
Enable real-time communication