GithubHelp home page GithubHelp logo

agromap's Introduction

Plot Service: It is the data storage of the farmer's plot.

The web backend is built using the Django framework, and manages mainly:

  • the core data model: the models are defined in **/models.py files (see Models)
  • the Administration Portal, built around the Django Admin framework.

Architecture

The backend architecture as per ORM and caching can be summarized as follows:

db.png

Data model (ORM)

Leverages Django ORM to manage the data model. Objects are created as Python classes that inherit from the Django's Model class, and define any number of fields required for the business logic. They are then mapped to the database using the Django ORM, through migrations. The migrations are defined in **/migrations/ folders.

Development setup

Prerequisites

  • Python 3.10
  • Docker

Environment variables

The web backend expects the following environment variables to be set:

  • POSTGRES_DB
  • POSTGRES_PASSWORD
  • POSTGRES_USER
  • POSTGRES_HOST
  • POSTGRES_PORT
  • SECRET_KEY
  • SCI_HUB_USERNAME
  • SCI_HUB_PASSWORD

Setup

git clone -b main [email protected]:gip-python/plot.git
docker-compose up -d --build
docker-compose exec web ./manage.py createsuperuser

Tests


# Start unit test --------------------------------
sudo docker-compose exec web python manage.py test


# Start django test coverage ---------------------
sudo docker-compose exec web coverage report

Indexes

Now we have opportunity to get 2 kind of index(NDVI, NDMI). You have to upload 4 satellite images in tiff format from Sentinel-2. Ther are B04, B08, B8A, B11.

agromap's People

Contributors

azim-kenzh avatar tip-rok avatar sharshenaliev avatar kaiaman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.