Local Development Setup
This guide walks you through setting up the local development environment for MOOD MNKY API services.Prerequisites
- Docker and Docker Compose
- Node.js 18 or higher
- Python 3.9 or higher
- Git
Service Setup
1. Ollama Service
2. Flowise Service
3. Langchain Service
4. n8n Service
Environment Configuration
Create a.env file in each service directory:
Ollama Service
Flowise Service
Langchain Service
n8n Service
Development API Keys
Request development API keys from the Developer Portal:- Log in to your account
- Navigate to API Keys section
- Click “Generate Development Key”
- Store keys securely in your environment
Testing the Setup
1. Health Check All Services
2. Test API Endpoints
Development Tools
API Documentation
Access local API documentation:- Ollama: http://localhost:11434/docs
- Flowise: http://localhost:3000/docs
- Langchain: http://localhost:8000/docs
- n8n: http://localhost:5678/docs
Debugging Tools
-
Logging
-
Database Management
- Flowise: SQLite browser at
http://localhost:3000/admin - Langchain: Database viewer at
http://localhost:8000/admin - n8n: Admin panel at
http://localhost:5678/admin
- Flowise: SQLite browser at
Common Issues
Port Conflicts
If ports are already in use:-
Check for running processes:
-
Update service ports in
.envfiles
Network Issues
-
Verify Docker network:
-
Check service connectivity:
Authentication Issues
-
Verify API key format:
- Development keys start with
dev_ - Keys should be properly formatted
- Development keys start with
-
Check permissions: