Skip to content

AlphaIsYour/parking-predictions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🅿️ Sistem Prediksi & Manajemen Parkir UB

License: MIT Node.js PostgreSQL

Sistem cerdas untuk memprediksi kepadatan parkir dan manajemen real-time di Universitas Brawijaya. Dilengkapi dengan integrasi AI, peta interaktif, dan laporan langsung dari pengguna.

🌟 Fitur Utama

  • Prediksi AI: Ramal kepadatan parkir berdasarkan jam & hari
  • Real-time Tracking: Update status parkir secara langsung
  • Laporan Pengguna: Kirim status parkir terbaru
  • Filter & Sorting: Cari parkir berdasarkan status, kapasitas, dll
  • Statistik Visual: Grafik distribusi status parkir
  • Navigasi: Integrasi Google Maps ke lokasi parkir
  • Responsive Design: Akses dari mobile & desktop

🛠️ Teknologi

Kategori Teknologi
Frontend React.js, Next.js, Leaflet, Chart.js, Socket.io-client
Backend Express.js, PostgreSQL, Socket.io, Python (ML Model)
Lainnya Docker (Opsional), Nginx (Opsional), Redis (Rate Limiting)

📥 Instalasi

Prasyarat

  • Node.js 18.x
  • PostgreSQL 15+
  • Python 3.10+ (untuk model ML)

Langkah-langkah

  1. Clone Repositori
    git clone https://github.com/username/parking-ub.git
    cd parking-ub
  2. Setup Backend
    cd backend
    npm install
    cp .env.example .env
    # Isi variabel environment di .env
  3. Setup Frontend
    cd ../frontend
    npm install
    cp .env.example .env.local
  4. Setup Python Environment (Model ML)
    python -m venv .venv
    .venv\Scripts\activate  # Windows
    pip install -r requirements.txt
    

⚙️ Konfigurasi

Environtment Variables Backend (.env)

DATABASE_URL=postgres://user:password@localhost:5432/parkir_ub
PORT=5001
PYTHON_PATH=C:/path/to/python.exe  # Path ke Python environment

Frontend(.env.local)

NEXT_PUBLIC_API_URL=http://localhost:5001

Database Setup Jalankan query SQL berikut di PostgreSQL:

CREATE TABLE lokasi_parkir (
id SERIAL PRIMARY KEY,
nama VARCHAR(100) NOT NULL,
latitude FLOAT NOT NULL,
longitude FLOAT NOT NULL,
status VARCHAR(20) CHECK (status IN ('kosong', 'ramai', 'penuh')),
kapasitas INT,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);

CREATE TABLE laporan_parkir (
  id SERIAL PRIMARY KEY,
  lokasi_id INT REFERENCES lokasi_parkir(id),
  kepadatan VARCHAR(20),
  created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);

🚀 Menjalankan Aplikasi

Backend

cd backend
npm start

Frontend

cd frontend
npm run dev

Buka http://localhost:3000 di browser.

🤝 Berkontribusi

  1. Fork repositori
  2. Buat branch fitur baru
    git checkout -b fitur-baru
  3. Commit perubahan
    git commit -m 'Menambahkan fitur ... '
  4. Push ke branch
    git push origin fitur-baru
  5. Buat Pull Request

📜 Lisensi

Proyek ini dilisensikan di bawah MIT License.

Dikembangkan oleh Youralpha


Thank you!

About

A slick web app tackling parking chaos at UB! Built with Next.js for both frontend and backend, powered by Python-trained models for spot-on predictions, and backed by PostgreSQL. Features real-time checks for empty spots, crowd reports, and a prediction engine to dodge the "full lot" struggle—your parking hero in the making.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors