Skip to content

sharokh23/corteva_code_challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Corteva Coding Challenge

Setup

The application is fully containerized so we will want to first bring up the containers

docker compose up

Run the database migrations

docker exec -it corteva_code_challenge-api-1 python manage.py migrate

Import sample data and calculate the statistics

docker exec -it corteva_code_challenge-api-1 python manage.py ingest_weather_data
docker exec -it corteva_code_challenge-api-1 python manage.py ingest_yield_data
docker exec -it corteva_code_challenge-api-1 python manage.py calculate_weather_stats
docker exec -it corteva_code_challenge-api-1 python manage.py correlations_weather_yield # Optional

Note: Both of these processes may take a while as it is going through over a million records.

API calls/docs

Once the containers come up, you can navigate to http://localhost:8000/api/docs/ and see a full set of the APIs available and all their documentations

Unit Tests

docker exec -it corteva_code_challenge-api-1 python manage.py test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published