TKK_E32232188/smartcollar-fe
Hilmania Zahra f09a282153 Initial commit 2026-07-20 16:21:52 +07:00
..
ajax Initial commit 2026-07-20 16:21:52 +07:00
assets Initial commit 2026-07-20 16:21:52 +07:00
config Initial commit 2026-07-20 16:21:52 +07:00
includes Initial commit 2026-07-20 16:21:52 +07:00
pages Initial commit 2026-07-20 16:21:52 +07:00
services Initial commit 2026-07-20 16:21:52 +07:00
.env.example Initial commit 2026-07-20 16:21:52 +07:00
.gitignore Initial commit 2026-07-20 16:21:52 +07:00
CHANGELOG.md Initial commit 2026-07-20 16:21:52 +07:00
LICENSE Initial commit 2026-07-20 16:21:52 +07:00
README.md Initial commit 2026-07-20 16:21:52 +07:00
composer.json Initial commit 2026-07-20 16:21:52 +07:00
composer.lock Initial commit 2026-07-20 16:21:52 +07:00
index.php Initial commit 2026-07-20 16:21:52 +07:00
login.php Initial commit 2026-07-20 16:21:52 +07:00
logout.php Initial commit 2026-07-20 16:21:52 +07:00
register.php Initial commit 2026-07-20 16:21:52 +07:00
session.php Initial commit 2026-07-20 16:21:52 +07:00

README.md

🐄 Smart Collar Web

Smart Collar Web adalah aplikasi berbasis PHP Native yang digunakan untuk memonitor sapi secara realtime menggunakan perangkat IoT Smart Collar.

Project ini terhubung dengan Smart Collar Backend (Express.js) melalui REST API dan menggunakan Firebase Authentication serta Firebase Realtime Database.


Features

  • Firebase Authentication
  • Dashboard Monitoring
  • Cow Management
  • Smart Collar Management
  • Assignment Management
  • Realtime Monitoring
  • Google Maps
  • Monitoring History
  • WhatsApp Notification (Planned)

Tech Stack

Frontend

  • PHP Native
  • Bootstrap 5
  • JavaScript
  • Fetch API

Backend

  • Node.js
  • Express.js

Database

  • Firebase Realtime Database

Authentication

  • Firebase Authentication

Project Structure

smartcollar-web/

├── ajax/
├── assets/
│   ├── css/
│   ├── img/
│   └── js/
│
├── config/
├── includes/
├── pages/
├── services/
│
├── index.php
├── login.php
├── README.md
├── LICENSE
├── CHANGELOG.md
└── .gitignore

Installation

Clone repository

git clone https://github.com/yourusername/smartcollar-web.git

Masuk ke project

cd smartcollar-web

Install dependency

composer install

Configuration

Edit

config/api.php
define(
    "API_URL",
    "http://localhost:3000/api/v1"
);

Run

PHP Built-in Server

php -S localhost:8080

atau menggunakan XAMPP

http://localhost/smartcollar-web

Monitoring Flow

ESP32
   │
   ▼
REST API
   │
   ▼
Express Backend
   │
   ▼
Firebase
   │
   ▼
PHP Dashboard

Development Status

Module Status
Authentication
Dashboard
Cow Management
Smart Collar
Assignment
Monitoring
History
WhatsApp Notification

License

MIT License


Author

Muhammad Iqbal

Software Engineer

DevGo