Asterki / octo-tree

https://octo-tree.vercel.app
MIT License
1 stars 0 forks source link

Octo-Tree

This project is a web application that interfaces with an Arduino Uno board to monitor and control various sensors and actuators. The backend is built with Typescript, using Express for the web framework, Socket.io for real-time communication, and SQLite for data storage. The frontend is developed with TypeScript, React, Socket.io, and TailwindCSS.

Table of Contents

Features

Hardware Requirements

Software Requirements

Installation

Backend Setup

  1. Clone the repository:

    git clone https://github.com/asterki/octo-tree.git
    cd octo-tree
  2. Navigate to the server directory:

    cd server
  3. Set up the server and install dependencies:

    npm i
  4. Run the Flask server:

    npm run dev

Frontend Setup

  1. Navigate to the frontend directory and install dependencies:

    cd client
    npm install
  2. Start the development server:

    npm run dev

Arduino Setup

  1. Open the Arduino IDE and upload the provided sketch (arduino/index.ino) to your Arduino Uno board.
  2. Ensure the correct serial port is selected.

Usage

  1. Ensure the Node backend and React frontend servers are running.
  2. Open your web browser and navigate to http://localhost:5173.
  3. You should see the web app interface where you can monitor sensor data and control actuators.

Contributing

Contributions are welcome! Please fork the repository and create a pull request with your changes. Ensure your code adheres to the project's coding standards and include appropriate tests.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Authors