BuildingAI
BuildingAI is an intelligent AI application development platform that empowers developers to quickly build and deploy AI-powered applications. Built on NestJS + Vue 3, it provides a comprehensive solution for creating, managing, and deploying AI agents with a modern, user-friendly interface.
Features
- 🤖 AI Agent Builder: Create and customize AI agents with drag-and-drop interface
- 💬 Conversation Management: Advanced chat interface with context awareness
- 🔌 MCP Server Integration: Support for Model Context Protocol servers
- 🎨 Modern UI: Built with Vue 3 and Nuxt for excellent user experience
- 🔒 Enterprise Ready: Built-in user management, authentication, and multi-tenancy
- 📊 Analytics: Track usage and performance of your AI applications
- 🌐 i18n Support: Multi-language interface support
- 🔧 Extensible: Plugin system for custom extensions
Tech Stack
- Backend: NestJS 11.x + TypeORM 0.3.x
- Database: PostgreSQL 17.x
- Cache: Redis 8.x
- Frontend: Vue.js 3.x + Nuxt + Vite 7.x
- TypeScript: 5.x
- Monorepo: Turbo 2.x
Quick Start
Prerequisites
- Docker and Docker Compose installed
- At least 4GB RAM available
- 5GB free disk space
Deployment
-
Copy the environment file:
cp .env.example .env -
(Optional) Modify the
.envfile to customize your configuration:- Set
DB_PASSWORDfor database security - Set
REDIS_PASSWORDfor Redis security - Configure
BUILDINGAI_PORT_OVERRIDEif you need a different port - Set
NPM_REGISTRY_URLif you need a custom npm registry mirror
- Set
-
Start the services:
docker compose up -d -
Wait for services to be ready (may take a few minutes on first start):
docker compose logs -f buildingai -
Access BuildingAI at http://localhost:4090/install to complete the initial setup wizard.
Default Ports
- BuildingAI: 4090 (web interface)
- PostgreSQL: 5432 (database)
- Redis: 6379 (cache)
You can override these ports in the .env file.
Configuration
Environment Variables
All configuration is done through the .env file. See .env.example for all available options.
Key Settings
DB_USERNAME/DB_PASSWORD: Database credentialsREDIS_PASSWORD: Redis password (optional, but recommended for production)SERVER_PORT: Internal application portNPM_REGISTRY_URL: Custom npm registry mirror (useful in China or private networks)
Resource Limits
Default resource limits are configured for small to medium deployments:
- BuildingAI: 2 CPU cores, 3584MB RAM
- PostgreSQL: 1 CPU core, 512MB RAM
- Redis: 0.25 CPU cores, 256MB RAM
Adjust these in .env based on your workload.
Data Persistence
All data is stored in Docker volumes:
buildingai_data: Application data and uploadspostgres_data: Database filesredis_data: Redis persistence
Backup
To backup your data:
# Backup database
docker compose exec postgres pg_dump -U postgres buildingai > backup.sql
# Backup application data
docker run --rm -v buildingai_buildingai_data:/data -v $(pwd):/backup alpine tar czf /backup/buildingai-data.tar.gz -C /data .
Restore
# Restore database
docker compose exec -T postgres psql -U postgres buildingai < backup.sql
# Restore application data
docker run --rm -v buildingai_buildingai_data:/data -v $(pwd):/backup alpine tar xzf /backup/buildingai-data.tar.gz -C /data
Maintenance
View Logs
# All services
docker compose logs -f
# Specific service
docker compose logs -f buildingai
Restart Services
# All services
docker compose restart
# Specific service
docker compose restart buildingai
Update BuildingAI
# Pull latest images
docker compose pull
# Restart with new images
docker compose up -d
Stop Services
# Stop all services
docker compose down
# Stop and remove volumes (WARNING: deletes all data)
docker compose down -v
Troubleshooting
BuildingAI won't start
-
Check service health:
docker compose ps -
Check logs for errors:
docker compose logs buildingai -
Ensure PostgreSQL and Redis are healthy:
docker compose ps postgres redis
Database connection errors
- Verify
DB_USERNAME,DB_PASSWORD, andDB_DATABASEin.env - Check PostgreSQL logs:
docker compose logs postgres - Ensure PostgreSQL healthcheck is passing
Redis connection errors
- If
REDIS_PASSWORDis set, ensure it matches in all services - Check Redis logs:
docker compose logs redis - Verify Redis healthcheck status
Performance issues
- Increase resource limits in
.env - Monitor resource usage:
docker stats - Check for sufficient disk space
Security Recommendations
For production deployments:
- Set strong passwords for
DB_PASSWORDandREDIS_PASSWORD - Do not expose PostgreSQL and Redis ports externally (remove port mappings or use firewall rules)
- Use a reverse proxy (nginx, Caddy) with HTTPS for the BuildingAI web interface
- Regular backups of database and application data
- Monitor logs for suspicious activity
- Keep images updated regularly
Links
License
Please refer to the original repository for license information.
Support
For issues and questions:
- GitHub Issues: BuildingAI Issues
- Official Documentation: BuildingAI Docs