Skip to content

viniciusmecosta/PeatDashboard

Repository files navigation

Peat Dashboard

Peat Logo

A comprehensive dashboard for visualizing data from the Peat API.

Flutter Version License Platform


Table of Contents


Description

Peat Dashboard is a Flutter-based application designed to display real-time data fetched from the Peat API.
It uses environment variables to securely configure the API connection and authentication, ensuring flexibility and protection of credentials.


Screenshots

Home Dark Home Light Ração Dark Ração Light Instruction 1

Temperature Dark Temperature Light Instruction 2 Instruction 3


Getting Started

Prerequisites

  • Flutter SDK installed
  • A device or emulator set up for Flutter (Chrome recommended)

Installation

Follow the steps below to set up and run the project locally.

  1. Clone the repository
git clone https://github.com/viniciusmecosta/PeatDashboard.git
cd PeatDashboard
  1. Create a .env file in the project root, based on the assets/example.env file. Example content:
BASE_URL=http://127.0.0.1:8002
API_TOKEN=your_token_here

This file is required to connect the application to the API.

  1. Install dependencies
flutter pub get
  1. Run the application
flutter run

When prompted to select a device, choose Chrome for best compatibility.


API

This application consumes data from the Peat Data API, which serves as the backend providing all the information displayed on the dashboard.


Project Structure

PeatDashboard/
├── android/              # Android platform-specific files
├── assets/               # Images, fonts, and other assets
│   ├── fonts/            # Custom fonts
│   └── Screens/          # Screenshot images
├── ios/                  # iOS platform-specific files
├── lib/                  # Main application source code
│   ├── models/           # Data models for the application
│   ├── screens/          # UI screens (pages)
│   ├── services/         # Services for API communication
│   ├── utils/            # Utility functions and helpers
│   └── widgets/          # Reusable UI components
├── web/                  # Web platform-specific files
├── .env                  # Environment variables (create this)
└── README.md

Technologies Used

The main libraries and technologies used in this project include:

  • State Management: provider
  • Charts: fl_chart
  • UI: google_fonts, sleek_circular_slider
  • HTTP Requests: http
  • Maps: flutter_map, latlong2
  • Environment Variables: flutter_dotenv
  • Utilities: intl, url_launcher

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks