The app allows the user to:
- Click anywhere on the map,
- Get the x,y coordinated.
- Perform a Query on the coordinate selected.
- There are three data sources,
- Dark Sky - Gives current weather conditions.
- Crop Database - A collection of research about some selected Crops e/g Maize, Coffee, Tea among others.
- Soil Database e.g Ph, soil temp, moisture contents and other data about kenya soil.
- Allow the farmer to check the current climatic conditions near him/her , check aganaist the crop database to predict the likely best crop the farmer can plant.
- Django
- Geodjango
- Angular material
- Jquery
- Leafletjs
- HTML5
- Css3
- Postgresql
- Postgis
- Git
- Python 3.6 should be installed
- django 1.11
- Node package manager
- install other packages provided in the requirements.txt file
- Running the application
- Visit this link to view on any browser
- Ensure python3.6 is installed.
- Clone the repository git clone
- create a virtual environment virtualenv and activate source /bin/activate
- Install the required packages pip3 install -r requirements.txt
- Create a postgresql database.
- open the psql terminal by typing psql -h localhost -U
- Once on the psql terminal create the database ```CREATE DATABASE ``
- Create postgis extension
CREATE EXTENSION postgis
andCREATE EXTENSION postgis-topology
- Quit the shell \q
- Once the database is setup, make migrations, this creates database schemas for the application python manage.py -makemigrations
- Then create the actual database tables by python manage.py migrate
- Start the application by python manage.py runserver and open http://127.0.0.1:8000 in the browser.
Testing was done using python inbuild test tool called unittest to test database and form models.
- Given data on the soil property, and the climate, can you advise what ferilizer to use.
- Work on Angular UI.
- Quality of data.
To get Further help you can visit the official python and django documentation.
MIT (c) 2018 muriithi derrick