Skip to content

MagicAI2025/AppMagic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

21 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

App Magic AI

AI-powered Smart App Generator

Create complete applications using natural language descriptions, just like magic.

โœจ Features

  • ๐Ÿช„ 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

๐ŸŽฎ Example Applications

๐ŸŒŸ Intelligent Chatbot

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

๐ŸŒŸ E-commerce Platform

Create full-featured online stores including:

  • Shopping cart system
  • Payment integration
  • Order management
  • Inventory tracking
  • User reviews

๐ŸŒŸ Enterprise Management System

Automatically generate enterprise modules such as:

  • CRM (Customer Relationship Management)
  • ERP (Enterprise Resource Planning)
  • HRM (Human Resource Management)
  • Project management
  • Analytics dashboard

๐Ÿš€ Quick Start

Choose one of the following installation methods:

Windows Installation Guide

  1. Install Required Software
  1. Clone Project
git clone https://github.com/MagicAI2025/AppMagic.git
cd AppMagic
  1. Setup Backend
cd backend
python -m venv venv
.\venv\Scripts\activate
pip install -r requirements.txt
  1. Configure Database
  • Open MySQL command line tool
CREATE DATABASE appmagic CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
  1. 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
  1. Run Database Migration
# In backend directory
alembic upgrade head
  1. Start Backend Service
# In backend directory
uvicorn main:app --reload
  1. Setup Frontend
# Open a new terminal
cd frontend
npm install
  1. Create Frontend Environment Configuration Create .env.local in frontend directory:
NEXT_PUBLIC_API_URL=http://localhost:80
  1. Start Frontend Service
npm run dev
  1. Access Application

Linux Installation Guide

  1. 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
  1. Clone Project
git clone https://github.com/MagicAI2025/AppMagic.git
cd AppMagic
  1. Setup Backend
cd backend
python3.9 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
  1. Configure Database
sudo mysql
CREATE DATABASE appmagic;
CREATE USER 'appmagic'@'localhost' IDENTIFIED BY 'your_password';
GRANT ALL PRIVILEGES ON appmagic.* TO 'appmagic'@'localhost';
FLUSH PRIVILEGES;
  1. Create Backend Environment Configuration
cp .env.example .env
# Edit .env file to set necessary environment variables
  1. Run Database Migration and Start Service
alembic upgrade head
uvicorn main:app --reload
  1. Setup Frontend
cd ../frontend
npm install
cp .env.example .env.local
npm run dev

Docker Installation Guide

  1. Install Docker and Docker Compose
# Ubuntu/Debian
sudo apt install docker.io docker-compose

# CentOS/RHEL
sudo dnf install docker docker-compose
  1. Clone Project
git clone https://github.com/MagicAI2025/AppMagic.git
cd AppMagic
  1. 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
  1. Start Service
docker-compose up -d
  1. Access Application

๐Ÿ› ๏ธ Development Guide

Windows Development Setup

  1. 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
  1. Frontend Setup
# Install dependencies
npm install

# Start development server
npm run dev
  1. Database Setup
docker-compose up db

Backend Development

cd backend
python -m venv venv
source venv/bin/activate  # Linux/Mac
# For Windows: .\venv\Scripts\activate
pip install -r requirements.txt
uvicorn main:app --reload

Frontend Development

cd frontend
npm install
npm run dev

Troubleshooting on Windows

  1. 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
  1. Python venv issues:
# If activation is blocked
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
  1. Docker issues:
  • Ensure Hyper-V is enabled
  • Verify WSL2 is properly installed
  • Restart Docker Desktop

Linux Development Setup

Linux Specific Issues

  1. Permission Issues
# Fix directory permissions
sudo chown -R $USER:$USER .
  1. MySQL Connection Issues
# Check service status
sudo systemctl status mysql

# View logs
sudo tail -f /var/log/mysql/mysql.log

Docker Development Setup

Docker Specific Issues

  1. Container Startup Issues
# Check container status
docker ps -a

# View container logs
docker logs appmagic_backend_1
docker logs appmagic_frontend_1
  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 /data

๐Ÿ“ Project Structure

app-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

About

AI-powered Smart App Generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published