GreenWay is a Django-based web application designed for interactive route calculation and visualization. Developed with a focus on clean code and automated reliability, it bridges modern web GIS (Geographic Information Systems) with a robust Python backend.
- Interactive Mapping: Integrated with Leaflet.js for smooth, responsive map rendering and point selection.
- Route Calculation: Dynamic pathfinding and distance calculation between user-defined coordinates.
- Custom Django Workflow: Leverages Django's form handling and templating for a seamless user experience.
- Automated Quality Assurance: High-coverage test suite using Selenium WebDriver for end-to-end browser testing.
- Responsive UI: Custom CSS architecture ensuring usability across different device scales.
- Backend: Python 3.x, Django
- Frontend: JavaScript, Leaflet.js, HTML5, CSS3
- Testing: Selenium WebDriver (E2E), Django TestCase
- Database: SQLite (Development) / PostgreSQL (Production ready)
-
Environment Setup Create and activate a virtual environment:
python -m venv venv # Windows: venv\Scripts\activate # macOS/Linux: source venv/bin/activate
-
Install Dependencies
pip install -r requirements.txt
-
Database Initialization
python manage.py migrate
-
Run Development Server
python manage.py runserver
Visit the app at
http://127.0.0.1:8000/
To ensure the mapping and routing logic work as expected, run the Selenium-based test suite
python manage.py test