Skip to content

Mum31/SafePath

Repository files navigation

SafePath - Planificateur de trajets sécurisés à Paris

Vercel Render

🚀 Déploiement Gratuit (Frontend Vercel + Backend Render)

1. Pousser sur GitHub

git add .
git commit -m \"Deploy ready\"
git push origin main

2. Frontend (Vercel - Static React)

3. Backend (Render - Docker Django/Postgres)

  • render.com → New → Web Service → Docker → GitHub repo
  • Env vars (de .env.example):
    • SECRET_KEY=... (générer nouveau)
    • DEBUG=False
    • DB_NAME=... DB_HOST=... (créer Postgres gratuit sur Render)
    • REDIS_URL=... (Redis gratuit Render)
    • ALLOWED_HOSTS=*
  • Build Command: auto (Dockerfile)
  • URL: https://safepath-api.onrender.com/api/

4. Connecter

  • Redeploy Vercel avec VITE_API_URL=https://safepath-api.onrender.com/api

Local Dev

docker-compose up --build
Frontend: http://localhost:5173
Backend: http://localhost:8000/api/

Fonctionnalités

  • Trajets sécurisés (densité ML)
  • Transports IDFM/Navitia
  • Maps Leaflet/Mapbox
  • Chatbot IA

Stack

  • Frontend: React/Vite/Leaflet/Recharts
  • Backend: Django/DRF/PostGIS/Redis/Pandas/scikit-learn
  • DB: Postgres/PostGIS

Fork & star! 🌟

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors