AI-powered Smart App Generator
Create complete applications using natural language descriptions, just like magic.
- ๐ช Instant App Creation
Generate applications in seconds, saving 90% development time
- ๐ฏ Natural Language to Code
Generate complete applications from natural language descriptions
- ๐ Continuous Evolution
Continuous application optimization, automatically adapting to new requirements
- ๐ฅ Team Efficiency
Boost team collaboration efficiency by 300%
- ๐ก Smart Suggestions
Intelligent code suggestions to accelerate development
- ๐ก๏ธ Enterprise Ready
Enterprise-grade security, ready for immediate deployment
- ๐ Visual Management
Visual project management, intuitive and efficient
- ๐ Code Quality Assurance
Automated code review ensuring code quality
- ๐ Quick Deployment
One-click deployment for rapid implementation
Generate LLM-powered chat applications with features like:
- Multi-model LLM support (GPT-4, Claude, etc.)
- Real-time conversation
- Context management
- Custom knowledge base integration
Create full-featured online stores including:
- Shopping cart system
- Payment integration
- Order management
- Inventory tracking
- User reviews
Automatically generate enterprise modules such as:
- CRM (Customer Relationship Management)
- ERP (Enterprise Resource Planning)
- HRM (Human Resource Management)
- Project management
- Analytics dashboard
Choose one of the following installation methods:
- Install Required Software
- Python 3.9+ (https://www.python.org/downloads/)
- Check "Add Python to PATH" during installation
- Node.js 16+ LTS (https://nodejs.org/)
- MySQL (https://dev.mysql.com/downloads/installer/)
- Remember the database username and password
- Git (https://git-scm.com/download/win)
- Clone Project
git clone https://github.com/MagicAI2025/AppMagic.git
cd AppMagic- Setup Backend
cd backend
python -m venv venv
.\venv\Scripts\activate
pip install -r requirements.txt- Configure Database
- Open MySQL command line tool
CREATE DATABASE appmagic CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;- Create Backend Environment Configuration Create .env file in backend directory:
DATABASE_URL=mysql+pymysql://user:password@db:3306/appmagic
SECRET_KEY=your-secret-key
OPENAI_API_KEY=your-openai-api-key
DEEPSEEK_API_KEY=your-deepseek-api-key
DEEPSEEK_API_BASE=https://api.deepseek.com/v1
DEFAULT_LLM_MODEL=deepseek-coder-33b-instruct
HOST=0.0.0.0
PORT=80
DEBUG=True- Run Database Migration
# In backend directory
alembic upgrade head- Start Backend Service
# In backend directory
uvicorn main:app --reload- Setup Frontend
# Open a new terminal
cd frontend
npm install- Create Frontend Environment Configuration Create .env.local in frontend directory:
NEXT_PUBLIC_API_URL=http://localhost:80- Start Frontend Service
npm run dev- Access Application
- Frontend: http://localhost:3000
- API Documentation: http://localhost:80/docs
- Install Required Software
# Ubuntu/Debian
sudo apt update
sudo apt install python3.9 python3.9-venv nodejs npm mysql-server git
# CentOS/RHEL
sudo dnf install python39 nodejs mysql-server git
sudo systemctl start mysqld
sudo systemctl enable mysqld- Clone Project
git clone https://github.com/MagicAI2025/AppMagic.git
cd AppMagic- Setup Backend
cd backend
python3.9 -m venv venv
source venv/bin/activate
pip install -r requirements.txt- Configure Database
sudo mysqlCREATE DATABASE appmagic;
CREATE USER 'appmagic'@'localhost' IDENTIFIED BY 'your_password';
GRANT ALL PRIVILEGES ON appmagic.* TO 'appmagic'@'localhost';
FLUSH PRIVILEGES;- Create Backend Environment Configuration
cp .env.example .env
# Edit .env file to set necessary environment variables- Run Database Migration and Start Service
alembic upgrade head
uvicorn main:app --reload- Setup Frontend
cd ../frontend
npm install
cp .env.example .env.local
npm run dev- Install Docker and Docker Compose
# Ubuntu/Debian
sudo apt install docker.io docker-compose
# CentOS/RHEL
sudo dnf install docker docker-compose- Clone Project
git clone https://github.com/MagicAI2025/AppMagic.git
cd AppMagic- Configure Environment Variables
# Backend configuration
cp backend/.env.example backend/.env
# Edit backend/.env to set necessary environment variables
# Frontend configuration
cp frontend/.env.example frontend/.env.local- Start Service
docker-compose up -d- Access Application
- Frontend: http://localhost:3000
- API Documentation: http://localhost:80/docs
- Backend Setup
# Create and activate virtual environment
python -m venv venv
.\venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Start backend server
uvicorn main:app --reload- Frontend Setup
# Install dependencies
npm install
# Start development server
npm run dev- Database Setup
- Install MySQL for Windows from official website
- Or use Docker:
docker-compose up dbcd backend
python -m venv venv
source venv/bin/activate # Linux/Mac
# For Windows: .\venv\Scripts\activate
pip install -r requirements.txt
uvicorn main:app --reloadcd frontend
npm install
npm run dev- Port conflicts:
# Check if ports are in use
netstat -ano | findstr "3000"
netstat -ano | findstr "80"
# Kill process by PID
taskkill /PID <process_id> /F- Python venv issues:
# If activation is blocked
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser- Docker issues:
- Ensure Hyper-V is enabled
- Verify WSL2 is properly installed
- Restart Docker Desktop
- Permission Issues
# Fix directory permissions
sudo chown -R $USER:$USER .- MySQL Connection Issues
# Check service status
sudo systemctl status mysql
# View logs
sudo tail -f /var/log/mysql/mysql.log- Container Startup Issues
# Check container status
docker ps -a
# View container logs
docker logs appmagic_backend_1
docker logs appmagic_frontend_1- Data Persistence Issues
# View volume information
docker volume ls
# Backup data
docker run --rm -v appmagic_mysql_data:/data -v $(pwd):/backup \
ubuntu tar cvf /backup/mysql_backup.tar /dataapp-magic/
โโโ backend/ # Backend code
โ โโโ alembic/ # Database migrations
โ โโโ models/ # Data models
โ โโโ services/ # Business logic
โ โโโ main.py # Main application
โโโ frontend/ # Frontend code
โ โโโ src/
โ โ โโโ components/ # React components
โ โ โโโ pages/ # Page components
โ โ โโโ utils/ # Utility functions
โ โ โโโ public/ # Static assets
โ โโโ docker-compose.yml # Docker configuration