Go to file
2024-05-13 21:36:30 +07:00
frontend Change sidebar webpage name 2024-05-13 20:41:22 +07:00
requirements Update requirement 2024-04-28 02:23:17 +07:00
StreamServer/src Update README and add example env 2024-05-13 20:41:04 +07:00
.gitignore Update .gitignore 2024-05-13 20:47:53 +07:00
LICENSE Create LICENSE 2024-05-13 01:28:30 +07:00
README.md Update README.md 2024-05-13 21:36:30 +07:00

HomieCare

Table of Contents

Installation

First of all clone this repository then install requirement file in requirements\base.txt

Recommend to create virtual environment

Podman Container

First of all, you need podman (it's like a docker but daemonless)

Podman installation

Install MinIO

You can follow detailed step here

Window

podman run -p 9000:9000 -p 9001:9001 minio/minio server /data --console-address ":9001"

Install PhpmyAdmin and MySQL

# Pull mysql and phpmyadmin then create network
podman pull docker.io/library/mysql docker.io/library/phpmyadmin
podman network create net-pma

# Run both Images
podman run --name service-mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root --network net-pma -d docker.io/library/mysql

podman run --name service-pma -p 8080:80 -e PMA_HOST=service-mysql --network net-pma -d docker.io/library/phpmyadmin

Download Model files then put in project

Download here

Download data to import to sql here

Then put into following path (Not fix to be this path but it would be great)

  • sppe, TSSTG, yolo-tiny-onecls folder -> StreamServer\src\analytic\action\Models

  • xgboost_model.pkl -> StreamServer\src\analytic\health

Create .env file

Take a look at description in example.env and fill out those parameter

Install node dependencies

cd frontend
pnpm

Usage

Start Server

Start server with main.py in StreamServer\src

py main.py

Run React

Start server with this command in frontend

pnpm dev

Then access webpage at http://localhost:5173/

Visit API documentation at http://127.0.0.1:8000/api/v1/docs/swagger/ or http://127.0.0.1:8000/api/v1/docs/

Reference