Skip to content

A web app integrating 2 API data sources, comparing them and providing useful statistics about the results - using Flask for backend, sqlalchemy for db integration and react for frontend.

Notifications You must be signed in to change notification settings

M1keEm/FieldStat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FieldStat

FieldStat is a web-based platform for agricultural data analysis and visualization. It enables users to collect, analyze, and visualize field and weather data to support decision-making in crop management.

Table of Contents

Features

  • User authentication and authorization
  • Data collection and management for agricultural fields
  • Weather data integration
  • Interactive dashboards and charts
  • RESTful API backend
  • Modern, responsive frontend UI

Architecture

FieldStat consists of two main components:

  • Backend: Python Flask API for data processing, authentication, and business logic
  • Frontend: React application for user interaction and data visualization

Both components are containerized using Docker and orchestrated with Docker Compose.

Getting Started

Prerequisites

Quick Start

  1. Clone the repository:
    git clone https://github.com/M1keEm/FieldStat
    cd FieldStat
    #enter your own api_key to .env file in the backendFlask directory
  2. Start the application using Docker Compose:
    docker-compose up --build
  3. Access the frontend at http://localhost:3000 and the backend API at http://localhost:5000.

Backend (Flask)

  • Located in the backendFlask/ directory
  • Main entry point: app.py
  • Configuration: config.py
  • API routes: routes/
  • Services: services/
  • Tests: tests/
  • Install dependencies:
    pip install -r requirements.txt

Frontend (React)

  • Located in the frontendReact/ directory
  • Main entry point: src/main.jsx
  • Components: src/components/
  • Install dependencies:
    npm install
  • Start development server:
    npm run dev

Development

  • Use Docker Compose for full-stack development and testing
  • Backend and frontend can be developed and tested independently
  • Run tests for backend:
    cd backendFlask
    pytest

License

This project is licensed under the MIT License.

About

A web app integrating 2 API data sources, comparing them and providing useful statistics about the results - using Flask for backend, sqlalchemy for db integration and react for frontend.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •