This is a Replit template for running an app that integrates Login with DIMO and DIMO Data SDK.
- Remix this Replite Template
- Update secrets with your own DIMO Developer License credentials, if you don't have these credentials, sign up on the DIMO Developer Console:
- Client ID:
DIMO_CLIENT_ID&VITE_DIMO_CLIENT_ID - Redirect URI:
DIMO_REDIRECT_URI&VITE_DIMO_REDIRECT_URI - API Key:
DIMO_API_KEY
To access secrets, click on the 4 squares (All tools) on the left panel, scroll down to find Secrets:

- Build Script: Custom
build-production.shscript handles complete production build - Static File Serving: Fixed file path mismatch between build output (
dist/public) and server expectations (server/public) - Host Binding: Server configured to bind to
0.0.0.0:5000for proper interface access - Environment Detection: Automatic switching between development (Vite HMR) and production (static file serving) modes
├── dist/
│ ├── index.js # Bundled server (ESBuild)
│ └── public/ # Client build output (Vite)
├── server/
│ └── public/ # Production static files location
- Node.js runtime environment
- Environment variable
NODE_ENV=production - Port configuration via
PORTenvironment variable (defaults to 5000) - Static files must be properly copied to
server/publicbefore starting production server
This template is based on the using DIMO's Developer SDKs. For more information, visit https://docs.dimo.org/developer-platform/developer-guide/dimo-developer-sdks