- Vào firebase: https://console.firebase.google.com/project/moviemate-a54ac/overview

- Chọn Project Setting -> General -> Your App -> tải file google-services.json
- Clone dự án -> SE114_MovieMate\app dán file google-services.json -> Chạy app
- Clone project và tìm thư mục
assetscùng fileenv.template - Tạo file mới tên
env(không có đuôi) và copy toàn bộ nội dung từenv.template
Caution
- Không được thay đổi
KEY_NAMEđể tránh gây lỗi - Khi thêm key mới, cần cập nhật cả file
env.templatevà hướng dẫn trongREADME.md
- API key sẽ được lưu tại
/assets/envtheo format
# Comment start with '#'
KEY_NAME=CONTENT # Comment inline is also supported
# Eg
PAYOS_API_KEY=paste-api-key-here- Việc load key sẽ sử dụng lib cdimascio/dotenv-java
- Code mẫu để có thể load key (Các ví dụ nâng cao có thể đọc tại repo của lib)
Dotenv dotenv = Dotenv.configure()
.directory("/assets")
.filename("env") // Lưu ý: env chứ không phải .env
.load();
dotenv.get("PAYOS_API_KEY");- Đăng nhập PayOS Dashboard
- Chọn tổ chức
- Chọn "Kênh thanh toán"
- Chọn "MovieMate"
- Đăng nhập Cloudinary
- Mở Settings ở góc dưới, bên trái -> Chọn API Keys (tại đây sẽ có đủ thông tin cần thiết)
- Copy các giá trị vào file
/assets/envtheo mẫu trong/assets/env.template


