This is a Django application designed to act as backend server for the Jaltol Web App. This guide will help you set up the project on your local machine.
pip
version 23.2.1 installed. You can check your pip
version by running:
pip --version
python -m venv venv
source venv/bin/activate # On Windows use venv\Scripts\activate
pip install -r requirements.txt
python manage.py runserver
Open a web browser and navigate to http://127.0.0.1:8000 to access the application.
views.py
The views.py
file contains the main view functions for handling requests and returning responses. It includes functions to interact with Earth Engine, process geographic data, and generate responses based on specific endpoints.
Key Functions: python
The constants.py file defines constants and helper functions used across the project. This includes Earth Engine asset paths, buffer sizes, and field names for SHRUG datasets.
Key Constants and Functions:
The ee_processing.py file includes functions that perform specific data processing tasks using Google Earth Engine. These functions are imported and used in the views to handle complex data processing.
Key Functions: