858 B
858 B
Refactoring Checklist: Backend Folder Structure
Goal
Restructure the backend code into a more modular, maintainable format.
Steps
- 1. Create new folders inside
backend/:api/,data/,models/,services/,utils/ - 2. Move
app.pytomain.pyinbackend/ - 3. Move
data_utils.pytobackend/data/data_utils.py - 4. Move
image_similarity.pyandimage_utils.pytobackend/services/ - 5. Move
llm_tag_similarity.py,tag_identification.py, andtag_match.pytobackend/models/ - 6. Move
result_aggregation.pytobackend/services/ - 7. Move
front_tag_embeddings.indexandtag_identification_cache.jsontobackend/data/ - 8. Update all import statements to reflect the new structure
- 9. Test the application to ensure everything works
- 10. Update documentation if needed