chore(adventure-rental-app): strip down application and remove obsolete files

This commit performs a major cleanup of the `adventure-rental-app` by removing all existing components, pages, layouts, and project brief documents. The application is reduced to a minimal Vite shell.

- Deleted all authentication, chatbot, and dashboard components and pages.
- Removed outdated project brief and PRD markdown files.
- Updated Vite and `@vitejs/plugin-react` dependencies.

Additionally, the `framer-motion` dependency was added to the `bookoomoo-app`.
This commit is contained in:
2025-08-10 10:27:39 +07:00
parent 61bb1ccc39
commit 4fe4b13f39
253 changed files with 89881 additions and 850 deletions

View File

@@ -0,0 +1,38 @@
// Contoh sederhana endpoint webhook
const express = require('express');
const app = express();
app.use(express.json());
const sessions = {};
app.post('/webhook', (req, res) => {
const { session_id, message } = req.body;
// Simpan pesan user
if (!sessions[session_id]) {
sessions[session_id] = [];
}
sessions[session_id].push({ sender: 'user', content: message });
// Proses pesan (contoh sederhana)
let response;
if (message.includes('harga')) {
response = "Produk paracord kami mulai dari Rp 25.000/meter. Mau lihat katalog?";
} else {
response = "Pesan diterima! Tim kami akan segera merespons.";
}
// Simpan pesan AI
sessions[session_id].push({ sender: 'ai', content: response });
res.json({ success: true });
});
app.get('/webhook/get', (req, res) => {
const { session_id } = req.query;
res.json({
new_messages: sessions[session_id]?.filter(msg => msg.sender === 'ai') || []
});
});
app.listen(3000, () => console.log('Webhook running on port 3000'));