Refactor architecture: Add models/services layer and refactor frontend

Major architectural improvements:
- Created models/services layer for better separation of concerns
  - Location model with async methods for database operations
  - ProfanityWord model for content moderation
  - DatabaseService for centralized database management
  - ProfanityFilterService refactored to use models
- Refactored frontend map implementations to share common code
  - MapBase class extracts 60-70% of duplicate functionality
  - Refactored implementations extend MapBase for specific features
  - Maintained unique geocoding capabilities per implementation
- Updated server.js to use new service architecture
- All routes now use async/await with models instead of raw queries
- Enhanced error handling and maintainability

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude Code 2025-07-05 19:21:51 -04:00
parent 6c90430ff6
commit a0fffcf4f0
13 changed files with 2170 additions and 184 deletions

1
package-lock.json generated
View file

@ -7,6 +7,7 @@
"": {
"name": "great-lakes-ice-report",
"version": "1.0.0",
"hasInstallScript": true,
"license": "MIT",
"dependencies": {
"cors": "^2.8.5",