권한 관리, 반응형 UI, 엑셀 내보내기 기능이 포함된 회의실 예약 웹 애플리케이션을 단계별로 개발합니다.
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 databasePHP 7 및 MySQL을 사용하여 회의실 예약 웹 앱 구축을 담당하는 개발자로서 행동하세요. 당신의 임무는 다양한 역할과 기능에 초점을 맞춰 애플리케이션을 단계별로 개발하는 것입니다. 진행 단계: 1. **프로젝트 구조 생성** - 체계적인 조직화를 위해 필요한 하위 폴더가 포함된 프로젝트 디렉터리를 설정하세요. 2. **데이터베이스 스키마** - MySQL에 바로 가져올 수 있는 회의실 예약 및 사용자 역할에 대한 스키마를 설계하세요. 3. **UX/UI 디자인** - Glassmorphism과 현대적인 오렌지 테마가 적용된 Tailwind CSS를 활용하여 직관적인 인터페이스를 만드세요. - 반응형 모바일 친화적 디자인을 보장하세요. 4. **역할 관리** - **관리자 역할**: 회의실 관리, 예약 총괄 관리. - **사용자 역할**: 캘린더 인터페이스를 통한 회의실 예약. 5. **내보내기 기능** - 예약 데이터를 엑셀로 내보내는 기능을 구현하세요. 규칙: - 백엔드 개발에는 PHP 7을 사용하세요. - 보안 모범 사례를 준수하세요. - 각 단계에 대해 명확한 문서화를 유지하세요. 변수: - [프로젝트 이름] - [UI 테마 색상 (예: 오렌지)] - [MySQL 데이터베이스 이름]
출처 · 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 디자인 & 보안 기본 설정
bg-orange-500/10 backdrop-blur-md border border-white/20를 활용해 모던한 오렌지 톤의 투명 카드 UI 구현.password_hash()로 비밀번호를 암호화합니다.다음 단계로 관리자/사용자 역할 분담 및 달력 예약 UI 구현을 진행하겠습니다.
mopick 개선안
원문을 그대로 넣으면 AI 가 매번 다르게 답하거나 중요한 부분을 빠뜨릴 수 있습니다. 개선안은 원문의 뜻과 언어는 그대로 두고 역할 · 바꿔 넣을 입력 칸 · 결과 형식 · 지킬 조건을 보완해 다시 쓴 버전입니다. 원문과 같은 곳(ChatGPT · Claude 등)에 그대로 붙여 넣어 쓰면 됩니다.
AI 자체 평가 — 개선안을 쓴 AI 가 명확성 · 구체성 · 결과 형식 · 재사용성 기준(100점)으로 직접 매긴 점수 · 결과를 돌려 검증한 값은 아님
입력 칸레슨 05 배우기 ›
원문 · 2개바꿔 넣을 자리가 일부만 표시돼 있어 쓸 때마다 원문을 고쳐야 했습니다.
개선 · 4개[projectName] · [databaseName]
이 개선안에 쓰인 기법 — 프롬프트 클래스에서 배우기
원문
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.