Giter Club home page Giter Club logo

recruitment-luna's Introduction

IoT Module Management Application - Aquaponics Farming

This is a project for an IoT module management application designed to measure water parameters in aquaponics farming. The application is built using ReactJS, TypeScript, and Tailwind CSS and aims to allow users to browse available modules and edit their parameters. Below, you will find information about the functionality, how to run the project, and testing.

Features

1. Modules List Page

  • The main page of the application displays all available modules in a list format.
  • It shows the module's name, availability, and target temperature.
  • Module data is fetched from the server using the GET /modules endpoint.

2. Module Details Page

  • Clicking on a module on the list page redirects the user to the module's details page.
  • It displays the module's name, description, availability, and target temperature.
  • It allows module editing through a modal dialog triggered by clicking the "Edit" button.
  • If a module is unavailable, it blocks the editing capability and displays a notice about its unavailability.

3. Module Editing Capability

  • On the module details page, users can edit module parameters such as name, description, and target temperature.
  • Before sending changes to the server, fields are validated:
    • name - a non-empty string
    • description - a non-empty string
    • targetTemperature - a number between 0 and 40

4. Displaying Current Temperature

  • The current water temperature, measured by the specific module, is displayed on both the modules list and module details pages.
  • Temperature data is obtained from a WebSocket server at localhost:3001 using the socket.io-client npm package.
  • Temperature updates in real-time upon receiving messages from the WebSocket server.
  • If the temperature is within ±0.5°C of the targetTemperature value, it is displayed in green; otherwise, it is displayed in red.

Running the Project

git clone https://github.com/olimpialewinska/recruitment-luna.git
cd recruitment-luna
npm install
npm start

The application will be accessible in your browser at http://localhost:3000.

Unit/Component Testing

The project includes unit and component tests to verify the correctness of the application. To run the tests, use the following command:

npm test

Author

Author: Olimpia Lewińska

Contact: [email protected]

This project is a recruitment task.

recruitment-luna's People

Contributors

olimpialewinska avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.