Skip to content

manhtq0508/SE114_MovieMate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

265 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SE114_MovieMate

1. Hướng dẫn chạy app

2. Cấu hình API key:

2.1. Thiết lập file env:

  • Clone project và tìm thư mục assets cùng file env.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

image

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.template và hướng dẫn trong README.md

2.2. Cấu trúc file env

  • API key sẽ được lưu tại /assets/env theo format
# Comment start with '#'
KEY_NAME=CONTENT # Comment inline is also supported
# Eg
PAYOS_API_KEY=paste-api-key-here

2.3. Cách sử dụng:

  • 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");

3. Cấu hình PayOS

3.1. Lấy API key của PayOS:

  1. Đăng nhập PayOS Dashboard
  2. Chọn tổ chức
  3. Chọn "Kênh thanh toán"
  4. Chọn "MovieMate"

image

4. Cấu hình Cloudinary

4.1. Lấy API key của Cloudinary:

  1. Đăng nhập Cloudinary
  2. 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)

image

  1. Copy các giá trị vào file /assets/env theo mẫu trong /assets/env.template

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages