Skip to content

braboj/demo-sensor-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This project demonstrates a full-stack application simulating sensor readings from an industrial plant, with a Python backend generating data, storing it in a database, and exposing it via an API. A frontend application will display the data and allow users to interact with it.

Requirements

To install and run the application, the following software must be installed on your system:

Quick Setup

Clone the repository using the following command (replace <project-name> with the name of your project):

git clone https://github.com/braboj/sensor-data-app <project-name>

For a specific branch, use the following command:

git clone -b <branch-name> https://github.com/braboj/sensor-data-app <project-name>

Navigate to the project folder and run the following command to start the application:

docker compose up

The following services will be started:

The backend offers one endpoint to retrieve sensor data:

curl http://localhost:5000/api/sensors

By default, the last 100 records are returned. You can specify the number of records to return by passing a query parameter:

curl http://localhost:5000/api/sensors?limit=1

Next Steps

About

Simulated sensor data sampling using REST API with Flask and Angular for visualization.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published