WELLlabs / JaltolAPI

MIT License
0 stars 0 forks source link

JaltolAPI

Overview

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.

Prerequisites

Installation

Create and Activate a Virtual Environment

python -m venv venv source venv/bin/activate # On Windows use venv\Scripts\activate

Install the Required Dependencies

pip install -r requirements.txt

Run the Development Server

python manage.py runserver

Access the Application

Open a web browser and navigate to http://127.0.0.1:8000 to access the application.

Project Structure

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

constants.py

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:

ee_processing.py

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: