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.
To install and run the application, the following software must be installed on your system:
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
- To learn more about the project, please visit Assigment
- To read about the solution, please visit Solution
- To contribute, please visit Contributing
- To leave feedback, please visit Discussions