Skip to content

RaghavSethi006/Travel-data-analysis-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Travel Data Collection App (NATPAC) A mobile-first travel data collection platform built with Streamlit (Python) frontend and Django REST Framework backend for the Smart India Hackathon. This solution leverages Streamlit’s lightweight web framework to create a responsive, install-free application that runs seamlessly on mobile devices, ensuring easy deployment, fast updates, and accessibility. πŸ“‚ Project Structure

SIH_Paradigm/ β”œβ”€β”€ backend/ # Django REST Framework backend β”‚ β”œβ”€β”€ natpac/ # Main Django project β”‚ β”œβ”€β”€ trips/ # Trip data app β”‚ β”œβ”€β”€ users/ # User management app β”‚ └── requirements.txt # Python dependencies β”œβ”€β”€ frontend/ # Streamlit app (mobile-first) β”‚ β”œβ”€β”€ pages/ # Multi-page navigation (Trips, Analytics, Profile) β”‚ β”œβ”€β”€ components/ # Custom reusable UI components β”‚ β”œβ”€β”€ app.py # Entry point for Streamlit app β”‚ └── requirements.txt # Streamlit dependencies └── README.md # This file ✨ Features Frontend (Streamlit – Mobile-First)

  • πŸ“± Mobile-responsive design (Streamlit layout + CSS tweaks)
  • πŸ“ Onboarding & consent flow (forms, checkboxes)
  • πŸ“ Trip data logging with GPS capture (via browser geolocation API)
  • πŸ‘¨β€πŸ‘©β€πŸ‘¦ Add accompanying travellers dynamically
  • πŸ”” Browser-based push notifications for reminders & nudges
  • πŸ“Ά Offline-first experience with caching & background sync
  • 🎨 Modern UI using Streamlit themes & reusable components Backend (Django REST Framework)
  • πŸ”‘ JWT authentication for secure login
  • πŸ”„ REST APIs for trip data, users, and analytics
  • πŸ“Š Admin dashboard for researchers (Django Admin)
  • πŸ“‚ Export trip datasets to CSV/Excel
  • πŸ•΅οΈ User anonymization for privacy
  • πŸ”’ Secure HTTPS communication πŸš€ Quick Start Backend Setup

cd backend python -m venv venv source venv/bin/activate # Windows: venv\Scripts\activate pip install -r requirements.txt python manage.py migrate python manage.py createsuperuser python manage.py runserver Frontend Setup (Streamlit)

cd frontend python -m venv venv source venv/bin/activate # Windows: venv\Scripts\activate pip install -r requirements.txt streamlit run app.py πŸ›  Technology Stack

  • Frontend: Streamlit (Python) – responsive, mobile-first PWA-like app
  • Backend: Django REST Framework (Python)
  • Database: SQLite (local + central)
  • Authentication: JWT tokens
  • Location Services: Browser GPS APIs
  • Notifications: Browser push notifications
  • Sync: Background REST API calls πŸ” Privacy & Security
  • βœ… User data anonymization with hashed IDs
  • βœ… JWT-based authentication
  • βœ… HTTPS for all communications
  • βœ… Local caching + secure sync with backend
  • βœ… GDPR-compliant consent management πŸ“Š System Architecture

+-------------------+ +---------------------+ +-----------------+ | User Device | <----> | Streamlit Frontend | <----> | Django Backend | | (Mobile Browser) | | (Python Web App) | | (REST APIs) | +-------------------+ +---------------------+ +-----------------+ ↑ β”‚ β”‚ β–Ό └────────────────────────── SQLite/Postgres ────────────────► Database πŸ‘¨β€πŸ’» Development Team Built for Smart India Hackathon 2024 – NATPAC Team Empowering travel data research with a mobile-first, web-based solution.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages