React Admin Frontend 및 Supabase 백엔드를 사용하여 풀 스택 애플리케이션을 생성하기위한 명령 줄 인터페이스 도구.
2025-01-27 (Docusign + Web 버전) :
2024-01-24 (Docker & Nginx 통합) :
2024-01-16 (편집 흐름) :
2024-01-10 (최적화 AI 생성 파이프 라인) :
2024-12-20 (토큰 사용량 감소 및 정확도 감소 및 정확도는 80%) :
# For Ubuntu
sudo apt-get update
sudo apt-get install docker.io
sudo systemctl start docker
sudo systemctl enable docker
# For macOS/Windows
Download and install Docker Desktop from https://www.docker.com/products/docker-desktop # Navigate to the project root directory
cd oneShotCodeGen
# Build the base image
docker build -t base-image -f base.Dockerfile .
# Verify the image was created
docker images | grep base-image # For Ubuntu
sudo apt-get install nginx
sudo systemctl start nginx
sudo systemctl enable nginx
# For macOS
brew install nginx
# For Windows
Download and install Nginx from http://nginx.org/en/download.html # Add your user to nginx group
sudo usermod -aG nginx $USER
# Ensure nginx config directory is writable
sudo chown -R $USER : $USER /etc/nginx/conf.d참고 : DockerFile을 변경하지 않는 한 기본 이미지는 한 번만 작성해야합니다. 이 기본 이미지에는 모든 생성 된 응용 프로그램의 기초로 사용될 모든 필요한 종속성 및 구성이 포함되어 있습니다.
pip install -r requirements.txt .env 에서 환경 변수를 설정하십시오. OPENAI_API_KEY=your_openai_api_key
SUPABASE_PROJECT_URL=your_supabase_url
SUPABASE_ANON_KEY=your_supabase_anon_key
SUPABASE_DB_PASSWORD=your_db_password골재 쿼리를 실행하도록 프론트 엔드에 대해 다음 권한이 설정되어 있는지 확인하십시오.
ALTER ROLE authenticator SET pgrst . db_aggregates_enabled = ' true ' ;
NOTIFY pgrst, ' reload config ' ;a. Latest version
# Just code generation
python -m src.cli create " Create an expense tracker app "
# With Docker only
python -m src.cli create " Create an expense tracker app " --docker
# With Docker and Nginx
python -m src.cli create " Create an expense tracker app " --docker --nginx비. 레거시 모드 사용 (2 콜 접근법) :
python -m src.cli create " Create an expense tracker app " --use-legacy기음. 사용자 정의 출력 디렉토리 추가 :
python -m src.cli create " Create an expense tracker app " --output-dir " path/to/
outputfolder " # Just code generation
python -m src.cli edit < project_dir > --description " Add a dashboard for expense
analytics "
# With Docker only
python -m src.cli edit < project_dir > --description " Add a dashboard " --docker
# With Docker and Nginx
python -m src.cli edit < project_dir > --description " Add a dashboard " --docker --nginx에이. 지역 개발 (기본값) :
cd output/{output_folder_name}/frontend
npm install
npm run dev비. Docker 배포 :
http://localhost:<port> 에서 제공됩니다기음. Nginx와 Docker :
http://localhost/{app_name} 에서 제공됩니다.지역 개발
Docker 배포
Nginx와 Docker
app-generator-cli/
├── src/ # Source code for the CLI
├── output/ # Generated applications
│ └── [timestamp]/ # Timestamp-based output directory
│ ├── frontend/ # React frontend application
│ ├── use_cases.json # Use case definitions
│ ├── entities.json # Entity model
│ ├── mock_users.json # Mock user data
│ ├── mock_data.json # Generated test data
│ ├── domain_model.json # Combined application model
│ ├── interface_model.json # UI/UX specifications
│ ├── sql/ # Generated SQL migrations
│ ├── src/ # Generated application source
│ └── generation.log # Generation process log
└── .env # Environment variables 편집 흐름 시스템을 사용하면 일관성과 안전을 유지하면서 기존 응용 프로그램을 수정할 수 있습니다. 사용 방법은 다음과 같습니다.
python -m src.cli update " Add a dashboard for expense analytics "완전한 재생
부분 업데이트
backups/backup_YYYYMMDD_HHMMSS/이 도구는 다음 구조로 React Application을 생성합니다.
frontend/
├── src/
│ ├── components/ # Reusable UI components
│ │ ├── Button.jsx
│ │ ├── Card.jsx
│ │ ├── Chart.jsx
│ │ ├── Form.jsx
│ │ ├── Modal.jsx
│ │ └── Table.jsx
│ ├── pages/ # Application pages
│ ├── providers/ # Data and auth providers
│ └── App.js # Main application component
└── package.json # Project dependencies 기부금을 환영합니다! 풀 요청을 제출하십시오.
이 프로젝트는 MIT 라이센스에 따라 라이센스가 부여됩니다. 자세한 내용은 라이센스 파일을 참조하십시오.