Skip to content

congdev9x/calendar-event-app-frontend

Repository files navigation

📆 Calendar Event App – Frontend

Frontend cho ứng dụng quản lý sự kiện lịch Dương/Âm và đồng bộ Google Calendar, giao diện hiện đại tích hợp Next.js, React, Tailwind.


🛠 Công nghệ sử dụng

  • Next.js 15 App Router
  • React 19 + React Query 5
  • TailwindCSS + ShadCN UI
  • Zod + Zodios (API schema & fetcher)
  • FullCalendar (lịch hiển thị)
  • vietnamese-lunar-calendar (ngày âm lịch)

✨ Hướng dẫn khởi chạy

1. Cài đặt

npm install

2. Khởi chạy dev

npm run dev

3. Build production

npm run build
npm start

Lưu ý: frontend cần backend chạy ở http://localhost:3001


✅ Đã triển khai

  • Giao diện lịch FullCalendar tích hợp ngày Dương + ngày âm
  • Highlight mùng 1, rằm và các ngày lễ âm
  • Popup tạo/sửa/xoá sự kiện
  • Đăng nhập/đăng ký bằng form + Google
  • Lưu token JWT trong localStorage + đồng bộ với React Context
  • Gửi token trong header Authorization cho API
  • Bảo vệ route /dashboard, redirect về login nếu chưa xác thực
  • Hook useEventsQuery, useCreateEvent, ... tích hợp React Query + Zodios
  • Tự đồng load lại sau khi tạo/sửa/xóa event

🧍 Chưa triển khai

  • UI calendar dạng danh sách/ngày/tuần
  • Tuỳ chọn giờ nhắc/sự kiện lặp lại
  • Đồng bộ hai chiều với Google Calendar (import events)
  • Cài đặt user: đổi tên, mật khẩu, timezone...
  • Tích hợp PWA/Noti để nhắc lịch
  • Đa ngôn ngữ / Hỗ trợ mobile

📁 Cấu trúc thư mục

src/
├── app/              # App router pages: login, register, dashboard
├── components/       # CalendarView, EventModal, UI shadcn
├── contexts/         # AuthContext (quản lý token)
├── lib/              # zodios client, hook API
└── styles/           # Tailwind, global.css

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published