Sure! Below is a comprehensive prompt you can use to guide the development of a website similar to Infinite Craft. This prompt outlines the key features, functionalities, and technical requirements to help you or your development team build the desired application using the Google Gemini API.
Project Prompt: Infinite Craft-Inspired Elements Combination Website
Objective:
Develop an interactive web application that allows users to combine elements via a drag-and-drop interface to create new, unlimited elements. The application will start with four basic elements: Earth, Fire, Water, and Air. By leveraging the Google Gemini API, the platform will dynamically generate and manage new elements as users combine existing ones.
Key Features:
-
User Interface (UI):
- Home Page:
- Display the four initial elements (Earth, Fire, Water, Air) as draggable icons or cards.
- Showcase previously created elements in a gallery or list format.
- Combination Area:
- A designated drop zone where users can drag and drop two elements to combine them.
- Element Detail View:
- Clicking on any element (basic or created) should open a modal or separate page displaying details about the element, such as its properties, how it was created, etc.
-
Drag-and-Drop Functionality:
- Implement intuitive drag-and-drop mechanics allowing users to select and combine two elements.
- Visual feedback during dragging (e.g., highlighting drop zones).
-
Element Combination Logic:
- Initial Elements: Start with Earth, Fire, Water, and Air.
- Combination Rules:
- Use the Google Gemini API to process combinations of two elements and generate new elements.
- Support unlimited combinations, enabling the creation of a vast array of elements.
- Duplicate Handling:
- Prevent creation of duplicate elements or handle them gracefully if generated.
-
Google Gemini API Integration:
- API Usage:
- Utilize Google Gemini API to handle the logic of combining two elements and generating a new one.
- Ensure proper handling of API requests, responses, and errors.
- Authentication:
- Securely manage API keys and authentication as per Google Gemini API requirements.
- Scalability:
- Design the integration to handle a growing number of elements without performance degradation.
-
Database Management:
- Element Storage:
- Use a database (e.g., Firebase, MongoDB, PostgreSQL) to store all elements, including their properties and combinations.
- User Data (Optional):
- If implementing user accounts, store user-generated elements, favorites, and history.
-
Responsive Design:
- Ensure the website is responsive and functions seamlessly across various devices (desktops, tablets, smartphones).
-
Performance Optimization:
- Optimize load times, especially as the number of elements grows.
- Implement lazy loading for element galleries if necessary.
-
Security Considerations:
- Protect against common web vulnerabilities (e.g., SQL injection, XSS).
- Secure API credentials and user data.
-
Additional Features (Optional):
- Search Functionality: Allow users to search for specific elements.
- Categorization: Group elements into categories or families based on common properties.
- Favorites/Bookmarks: Enable users to save their favorite elements.
- Sharing: Allow users to share created elements on social media platforms.
Technical Requirements:
-
Frontend:
- Framework: Use modern JavaScript frameworks such as React, Vue.js, or Angular for a dynamic and responsive UI.
- Drag-and-Drop Library: Implement drag-and-drop using libraries like React DnD, interact.js, or the HTML5 Drag and Drop API.
- Styling: Utilize CSS3, Sass, or frameworks like Tailwind CSS or Bootstrap for styling.
-
Backend:
- Server: Node.js with Express.js or another suitable backend framework.
- API Integration: Set up routes to handle communication with the Google Gemini API.
- Database: Choose a database system (SQL or NoSQL) to store elements and related data.
-
Google Gemini API:
- Documentation: Refer to the latest Google Gemini API documentation for integration guidelines.
- Endpoints: Identify and implement necessary API endpoints for combining elements.
- Rate Limiting: Handle API rate limits to ensure smooth user experience.
-
Deployment:
- Hosting: Deploy the application on platforms like Vercel, Netlify (for frontend), and Heroku, AWS, or Google Cloud Platform (for backend).
- CI/CD Pipelines: Set up continuous integration and deployment pipelines for efficient updates.
-
Version Control:
- Use Git for version control and host the repository on platforms like GitHub or GitLab.
Development Steps:
-
Planning:
- Define the scope and prioritize features.
- Design wireframes and mockups for the UI.
-
Setup:
- Initialize the project repository.
- Set up the frontend and backend environments.
- Configure the database.
-
Implement Core Features:
- Develop the drag-and-drop interface.
- Integrate the Google Gemini API for element combinations.
- Create database schemas for storing elements.
-
Testing:
- Write unit and integration tests to ensure functionality.
- Perform user testing to gather feedback and make improvements.
-
Deployment:
- Deploy the application to the chosen hosting platforms.
- Monitor performance and optimize as needed.
-
Maintenance:
- Regularly update dependencies and fix any bugs.
- Continuously enhance features based on user feedback.
Resources:
- Google Gemini API Documentation: [Insert Link]
- Drag-and-Drop Libraries:
- Frontend Frameworks:
- Backend Frameworks:
- Database Options:
Notes:
- Ensure compliance with Google Gemini API usage policies and guidelines.
- Focus on creating an engaging and user-friendly experience.
- Plan for scalability to handle a potentially large number of elements and user interactions.
This prompt provides a structured roadmap for developing your elements combination website. Feel free to adjust the technical stack and features based on your specific requirements and expertise.