Core Requirements
Follow these 10 essential standards to ensure your application integrates properly with Weam AI.Frontend Framework
Use Next.js as the frontend framework for all applications.
Backend Framework
If your application requires backend APIs, use Node.js or Express.js.
Database Configuration
Collection Naming Pattern:- Local Development
- Cloud Deployment
Authentication Requirements
Access to any application requires user authentication through Weam. Unauthenticated users must see a 404 page.
1
Check User Login Status
Verify authentication before rendering any content.
2
Handle Unauthenticated Users
Return a 404 page if user is not logged in.
3
Use IronSession
Leverage the pre-configured ironSession package for session handling.
Data Storage Convention
Required Data Structure:Theming Integration
Applications should match the existing Weam theme for consistent user experience. Use the same CSS variables and component patterns as the main platform.
Routing & Deployment
Base Path Configuration
All applications run behind nginx and require proper path configuration:Environment Variables
Environment Variables
Next.js Configuration
Next.js Configuration
Sidebar Integration
Make your application discoverable by adding it to the sidebar navigation.
src/seeders/superSolution.json
Add a new object following the structure of existing applications. This ensures your application appears automatically in the sidebar navigation.
NGINX Setup Guide
Complete server configuration for production deployment.1
Update and Install NGINX
2
Create NGINX Configuration
3
Enable Site and Test Configuration
4
Install SSL Certificate Tools
5
Generate SSL Certificate
Development Workflow
1
Project Setup
Create your Next.js application following the requirements above
2
Authentication Integration
Implement user authentication checks using ironSession
3
Database Configuration
Configure MongoDB with proper collection naming convention
4
Theme Application
Apply Weam’s visual theme and component patterns
5
Routing Setup
Configure base path and API routes with proper prefixes
6
Sidebar Integration
Add application to sidebar configuration file
7
Production Deployment
Configure nginx proxy rules and SSL certificates
Project Structure
Recommended File Structure
Recommended File Structure
Environment Configuration
- Required Variables
- Development Setup
This integration method ensures your custom applications work within Weam’s existing architecture while maintaining security and consistency.

