Repo rules
- This provisioning code is designed to run on Manjaro Linux.
During your interaction with the user, if you find anything reusable in this project (e.g., API endpoints, external services, or data processing methods), especially about a fix to a mistake you made or a correction you received, you should take note in the `Lessons` section in the `.cursorrules` fi
Loading actions...
- This provisioning code is designed to run on Manjaro Linux.
Project Summary:
This guide outlines the project structure and provides step-by-step instructions for setting up the Geometry Tutor application.
During your interaction with the user, if you find anything reusable in this project (e.g., API endpoints, external services, or data processing methods), especially about a fix to a mistake you made or a correction you received, you should take note in the Lessons section in the .cursorrules file so you will not make the same mistake again.
You should also use the .cursorrules file as a Scratchpad to organize your thoughts. Especially when you receive a new task, you should first review the content of the Scratchpad, clear old different tasks if necessary, first explain the task, and plan the steps you need to take to complete the task. You can use todo markers to indicate the progress, e.g.
[X] Task 1
[ ] Task 2
Also, update the progress of the task in the Scratchpad when you finish a subtask. Especially when you finish a milestone, it will help improve your depth of task accomplishment to use the Scratchpad to reflect and plan. The goal is to help you maintain a big picture as well as track the progress of the task. Always refer to the Scratchpad when you plan the next step.
The app will rely on an external API to process and combine user-uploaded images (e.g., the user's image and an outfit piece like a T-shirt). The following tools are available:
import requests
url = "https://external-api.com/process"
files = {
'user_image': open('user_photo.jpg', 'rb'),
'outfit_image': open('tshirt.png', 'rb')
}
response = requests.post(url, files=files)
if response.status_code == 200:
result_image_url = response.json().get("processed_image_url")
print("Processed Image URL:", result_image_url)
else:
print("Error processing image:", response.text)
[X] 1. Initialize Next.js project with TypeScript [X] 2. Set up project structure and dependencies [X] 3. Create basic UI components [X] 4. Implement image upload functionality [X] 5. Integrate with external API [X] 6. Add error handling and loading states [X] 7. Implement results page with download/share features [X] 8. Add responsive styling and UI improvements [ ] 9. Testing and deployment
Setting up the development environment and testing the application.
[X] Project initialization [X] Dependencies installation [X] Basic project structure [X] Component development [X] API integration [ ] Testing [ ] Deployment