본문 바로가기

11월 26일 19:51 기준 · 10분마다 새 소식을 확인합니다

광고나 제휴로 순서를 바꾸지 않습니다 · pick 기준 보기 ›
소식 받기
코딩 · 개발

회의실 예약 웹 앱 단계별 구축

권한 관리, 반응형 UI, 엑셀 내보내기 기능이 포함된 회의실 예약 웹 애플리케이션을 단계별로 개발합니다.

추천 툴
ChatGPTAI 분류
쓰인 기법
역할 부여 · 단계별 사고 · 조건 제약

프롬프트 원문

ChatGPT로 실행
Act as a developer tasked with building a meeting room booking web app using PHP 7 and MySQL. Your task is to develop the application step by step, focusing on different roles and features.

Your steps include:
1. **Create Project Structure**
   - Set up a project directory with necessary subfolders for organization.

2. **Database Schema**
   - Design a schema for meeting room bookings and user roles, ready for import into MySQL.

3. **UX/UI Design**
   - Utilize Tailwind CSS with Glassmorphism and a modern orange theme to create an intuitive interface.
   - Ensure a responsive, mobile-friendly design.

4. **Role Management**
   - **Admin Role**: Manage meeting rooms, oversee bookings.
   - **User Role**: Book meeting rooms via a calendar interface.

5. **Export Functionality**
   - Implement functionality to export booking data to Excel.

Rules:
- Use PHP 7 for backend development.
- Ensure security best practices.
- Maintain clear documentation for each step.

Variables:
- ${projectName} - Name of the project
- ${themeColor:orange} - Color theme for UI
- ${databaseName} - Name of the MySQL database
한국어 풀이 보기(참고용)
PHP 7 및 MySQL을 사용하여 회의실 예약 웹 앱 구축을 담당하는 개발자로서 행동하세요. 당신의 임무는 다양한 역할과 기능에 초점을 맞춰 애플리케이션을 단계별로 개발하는 것입니다.

진행 단계:
1. **프로젝트 구조 생성**
   - 체계적인 조직화를 위해 필요한 하위 폴더가 포함된 프로젝트 디렉터리를 설정하세요.

2. **데이터베이스 스키마**
   - MySQL에 바로 가져올 수 있는 회의실 예약 및 사용자 역할에 대한 스키마를 설계하세요.

3. **UX/UI 디자인**
   - Glassmorphism과 현대적인 오렌지 테마가 적용된 Tailwind CSS를 활용하여 직관적인 인터페이스를 만드세요.
   - 반응형 모바일 친화적 디자인을 보장하세요.

4. **역할 관리**
   - **관리자 역할**: 회의실 관리, 예약 총괄 관리.
   - **사용자 역할**: 캘린더 인터페이스를 통한 회의실 예약.

5. **내보내기 기능**
   - 예약 데이터를 엑셀로 내보내는 기능을 구현하세요.

규칙:
- 백엔드 개발에는 PHP 7을 사용하세요.
- 보안 모범 사례를 준수하세요.
- 각 단계에 대해 명확한 문서화를 유지하세요.

변수:
- [프로젝트 이름]
- [UI 테마 색상 (예: 오렌지)]
- [MySQL 데이터베이스 이름]
  • 활용원하는 프로그래밍 언어나 프레임워크로 변형하여 활용할 수 있습니다.
  • 활용단계별로 코드를 하나씩 요청하면서 진행하면 더욱 안정적입니다.
  • 활용디자인 테마 색상이나 UI 프레임워크 조건을 변경해 맞춤 스타일을 완성하세요.

출처 · prompts.chat · Meeting Room Booking Web App Development — 원문은 출처에 게시된 그대로이며, 권리는 원작자에게 있습니다.

텍스트 결과

Gemini로 실행한 결과입니다. 입력 항목에는 국내 환경의 예시값을 적용했습니다(AI 생성 — 사실 확인 필요).

실행 입력값 보기
Act as a developer tasked with building a meeting room booking web app using PHP 7 and MySQL. Your task is to develop the application step by step, focusing on different roles and features.

Your steps include:
1. **Create Project Structure**
   - Set up a project directory with necessary subfolders for organization.

2. **Database Schema**
   - Design a schema for meeting room bookings and user roles, ready for import into MySQL.

3. **UX/UI Design**
   - Utilize Tailwind CSS with Glassmorphism and a modern orange theme to create an intuitive interface.
   - Ensure a responsive, mobile-friendly design.

4. **Role Management**
   - **Admin Role**: Manage meeting rooms, oversee bookings.
   - **User Role**: Book meeting rooms via a calendar interface.

5. **Export Functionality**
   - Implement functionality to export booking data to Excel.

Rules:
- Use PHP 7 for backend development.
- Ensure security best practices.
- Maintain clear documentation for each step.

Variables:
- SmartSpace_Booking - Name of the project
- modern orange (#F97316) - Color theme for UI
- smart_space_db - Name of the MySQL database

안녕하세요! PHP 7 및 MySQL 기반 회의실 예약 웹 앱 SmartSpace_Booking 개발 가이드입니다.

Step 1. 프로젝트 디렉토리 구조

SmartSpace_Booking/
├── config/      # DB 연결 (db.php)
├── controllers/ # 비즈니스 로직
├── views/       # UI 템플릿 (Tailwind Glassmorphic UI)
├── public/      # index.php, assets (CSS/JS)
└── vendor/      # PhpSpreadsheet (엑셀 내보내기 라이브러리)

Step 2. 데이터베이스 스키마 (smart_space_db)

CREATE DATABASE smart_space_db CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
USE smart_space_db;

CREATE TABLE users (
    id INT AUTO_INCREMENT PRIMARY KEY,
    name VARCHAR(50) NOT NULL,
    email VARCHAR(100) UNIQUE NOT NULL,
    password VARCHAR(255) NOT NULL,
    role ENUM('admin', 'user') DEFAULT 'user',
    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);

CREATE TABLE rooms (
    id INT AUTO_INCREMENT PRIMARY KEY,
    room_name VARCHAR(50) NOT NULL,
    capacity INT NOT NULL
);

CREATE TABLE bookings (
    id INT AUTO_INCREMENT PRIMARY KEY,
    user_id INT, room_id INT,
    start_time DATETIME NOT NULL,
    end_time DATETIME NOT NULL,
    FOREIGN KEY (user_id) REFERENCES users(id),
    FOREIGN KEY (room_id) REFERENCES rooms(id)
);

Step 3. UI 디자인 & 보안 기본 설정

  • Glassmorphism + Orange 테마: Tailwind 클래스 bg-orange-500/10 backdrop-blur-md border border-white/20를 활용해 모던한 오렌지 톤의 투명 카드 UI 구현.
  • 보안: PHP 7 PDO의 Prepared Statement를 사용해 SQL Injection을 방지하고 password_hash()로 비밀번호를 암호화합니다.

다음 단계로 관리자/사용자 역할 분담 및 달력 예약 UI 구현을 진행하겠습니다.

mopick 개선안

원문을 더 잘 동작하게 고쳐 쓴 프롬프트

원문을 그대로 넣으면 AI 가 매번 다르게 답하거나 중요한 부분을 빠뜨릴 수 있습니다. 개선안은 원문의 뜻과 언어는 그대로 두고 역할 · 바꿔 넣을 입력 칸 · 결과 형식 · 지킬 조건을 보완해 다시 쓴 버전입니다. 원문과 같은 곳(ChatGPT · Claude 등)에 그대로 붙여 넣어 쓰면 됩니다.

AI 자체 평가 — 개선안을 쓴 AI 가 명확성 · 구체성 · 결과 형식 · 재사용성 기준(100점)으로 직접 매긴 점수 · 결과를 돌려 검증한 값은 아님

원문74
개선안93

원문의 문제 → 개선안에서 고친 점

  • 입력 칸레슨 05 배우기 ›

    원문 · 2개바꿔 넣을 자리가 일부만 표시돼 있어 쓸 때마다 원문을 고쳐야 했습니다.

    개선 · 4개[projectName] · [databaseName]

고친 이유 (개선안을 만든 AI 의 설명)

  1. 1구체적인 보안 요구사항(PDO, CSRF) 명시
  2. 2단계별 구현 코드의 출력 형식 및 구조 구체화
  3. 3코드 제공 전 보안 및 논리 검증 절차 추가

원문

Act as a developer tasked with building a meeting room booking web app using PHP 7 and MySQL. Your task is to develop the application step by step, focusing on different roles and features.

Your steps include:
1. **Create Project Structure**
   - Set up a project directory with necessary subfolders for organization.

2. **Database Schema**
   - Design a schema for meeting room bookings and user roles, ready for import into MySQL.

3. **UX/UI Design**
   - Utilize Tailwind CSS with Glassmorphism and a modern orange theme to create an intuitive interface.
   - Ensure a responsive, mobile-friendly design.

4. **Role Management**
   - **Admin Role**: Manage meeting rooms, oversee bookings.
   - **User Role**: Book meeting rooms via a calendar interface.

5. **Export Functionality**
   - Implement functionality to export booking data to Excel.

Rules:
- Use PHP 7 for backend development.
- Ensure security best practices.
- Maintain clear documentation for each step.

Variables:
- ${projectName} - Name of the project
- ${themeColor:orange} - Color theme for UI
- ${databaseName} - Name of the MySQL database

개선안 · 색칠한 [칸]에 내 내용을 넣어 쓰세요

Act as a Senior Full-Stack Developer specializing in PHP 7 and MySQL. Your task is to develop a meeting room booking web app step-by-step based on the specifications below.

### Context & Goal
Build '[projectName]' using PHP 7, MySQL (`[databaseName]`), and Tailwind CSS with a modern UI.

### Steps & Deliverables
1. **Project Structure**: Output directory layout following MVC or clean modular architecture.
2. **Database Schema**: Provide production-ready SQL scripts including tables for users, roles, rooms, and bookings with proper indexes and foreign keys.
3. **UI/UX Design**: Provide responsive HTML/Tailwind CSS code featuring Glassmorphism with `${themeColor:orange}` styling, focused on an intuitive calendar view.
4. **Role & Auth Management**: Implement authentication and role-based access control (Admin: room/booking management; User: calendar booking).
5. **Export Functionality**: Provide PHP code to export booking data to Excel/CSV format.

### Security & Code Constraints
- Use PHP 7 PDO with prepared statements to prevent SQL injection.
- Implement secure authentication (password_hash/verify), CSRF protection, and XSS sanitization.
- Keep code fully documented and structured.

### Output Format
- Provide step-by-step runnable code snippets.
- Perform a self-check for security vulnerabilities and logical completeness before presenting final code blocks.

같은 분야 프롬프트 코딩 · 개발

더 보기 ›