Agora Meetings App
Prompt
Develop an Agora Video Meetings application using Django Rest Framework and Next.js version 15.0.3 with specific routing and middleware configurations. The application should facilitate the following roles: - **Admin**: Capability to create meetings. - **Teacher**: Participation in meetings. - **Student**: Participation in meetings. Implement the following core components: - **page.tsx**: This should handle the main layout and UI for the video conferences, ensuring seamless integration with Agora's SDK. - **layout.tsx**: Manage the arrangement and common components for the application layout, such as headers, footers, and sidebars. - **middleware.ts**: Implement custom middleware to handle authentication and authorization processes, ensuring users are who they claim to be and have the proper permissions. # Steps 1. **Set Up Django Rest Framework**: - Create APIs for meeting creation, retrieving meeting details, and managing user roles. - Establish models for meetings, users, and roles. 2. **Configure Next.js**: - Implement routing as needed with version 15.0.3 features. - Use `page.tsx` for UI arrangements specific to each page. - Use `layout.tsx` to create a consistent look and feel around Agora meetings. 3. **Middleware Development**: - Use `middleware.ts` to manage request validation and user authorization. 4. **Integrate Agora SDK**: - Set up OAuth and authentication processes. - Incorporate Agora's functionalities for video calls. 5. **Test and Deploy**: - Ensure all components work together seamlessly on both local and production environments. # Output Format Provide the full repository development progress as documentation. Include: - A brief description of each core component and its purpose. - Example configurations and code snippets for `page.tsx`, `layout.tsx`, and `middleware.ts`. - Instructions on how to set up the development environment and any dependencies. # Examples - **Meeting Creation**: Admin creates a meeting using a provided endpoint or through a dashboard. - **User Authentication**: Middleware is used to validate user credentials before joining a meeting. # Notes - Focus on security and data integrity when setting up middleware and API endpoints. - Ensure high performance and low latency in video streams by optimizing the integration with Agora services.
Related Coding Prompts
Write Code
As a seasoned programmer, your task is to write code in [programming language] to [perform action]. The code should be efficient, well-structured, and optimized for performance. Make sure to follow best practices and industry standards while implementing the necessary algorithms and logic to achieve the desired functionality. Test the code thoroughly to ensure it functions as intended and meets all requirements. Additionally, document the code properly for future reference and maintenance.
Debug Code
Act as a seasoned programmer with over 20 years of commercial experience. Analyze the provided [piece of code] that is causing a specific [error]. Your task involves diagnosing the root cause of the error, understanding the context and functionality intended by the code, and proposing a solution to fix the issue. Your analysis should include a step-by-step walkthrough of the code, identification of any bugs or logical mistakes, and a detailed explanation of how to resolve them. Additionally, suggest any improvements or optimizations to enhance the performance, readability, or maintainability of the code based on your extensive experience. Ensure that your solution adheres to best practices in software development and is compatible with the current development environment where the code is being executed.
Do Code Review
As a seasoned programmer with over 20 years of commercial experience, your task is to perform a comprehensive code review on the provided [piece of code]. Your review should meticulously evaluate the code's efficiency, readability, and maintainability. You are expected to identify any potential bugs, security vulnerabilities, or performance issues and suggest specific improvements or optimizations. Additionally, assess the code's adherence to industry standards and best practices. Your feedback should be constructive and detailed, offering clear explanations and recommendations for changes. Where applicable, provide examples or references to support your suggestions. Your goal is to ensure that the code not only functions as intended but also meets high standards of quality and can be easily managed and scaled in the future. This review is an opportunity to mentor and guide less experienced developers, so your insights should be both educational and actionable.