feat: major API restructure and Vue.js frontend integration

- Centralize API endpoints in dedicated api app with v1 versioning
- Remove individual API modules from parks and rides apps
- Add event tracking system with analytics functionality
- Integrate Vue.js frontend with Tailwind CSS v4 and TypeScript
- Add comprehensive database migrations for event tracking
- Implement user authentication and social provider setup
- Add API schema documentation and serializers
- Configure development environment with shared scripts
- Update project structure for monorepo with frontend/backend separation
This commit is contained in:
pacnpal
2025-08-24 16:42:20 -04:00
parent 92f4104d7a
commit e62646bcf9
127 changed files with 27734 additions and 1867 deletions

View File

@@ -21,17 +21,8 @@ try:
except ImportError:
HAS_SPECTACULAR = False
# Import enhanced health check views
try:
from apps.core.views.health_views import (
HealthCheckAPIView,
PerformanceMetricsView,
SimpleHealthView,
)
HAS_HEALTH_VIEWS = True
except ImportError:
HAS_HEALTH_VIEWS = False
# Health check views are now consolidated in the API v1
HAS_HEALTH_VIEWS = False
# Import autocomplete URLs
try:
@@ -48,9 +39,9 @@ urlpatterns = [
path("", HomeView.as_view(), name="home"),
# Health Check URLs
path("health/", include("health_check.urls")),
# API URLs (before app URLs to avoid conflicts)
path("api/v1/", include("apps.parks.api.urls", namespace="parks_api")),
path("api/v1/", include("apps.rides.api.urls", namespace="rides_api")),
# New Consolidated API v1 URLs
path("api/v1/", include("apps.api.v1.urls", namespace="api_v1")),
# All API endpoints are now consolidated under /api/v1/
path(
"api/v1/map/", include("apps.core.urls.map_urls", namespace="map_api")
), # Map API URLs
@@ -139,23 +130,7 @@ if HAS_SPECTACULAR:
]
)
# Add enhanced health check URLs if available
if HAS_HEALTH_VIEWS:
urlpatterns.extend(
[
path("health/api/", HealthCheckAPIView.as_view(), name="health-api"),
path(
"health/simple/",
SimpleHealthView.as_view(),
name="health-simple",
),
path(
"health/metrics/",
PerformanceMetricsView.as_view(),
name="health-metrics",
),
]
)
# Health check API endpoints are now available at /api/v1/health/
# Serve static files in development
if settings.DEBUG: