lehuygiang28 / vphim

Full-stack movie web/mobile app built with NestJS + Next.js + Expo
https://vephim.online
1 stars 0 forks source link

làm cách nào để sử dụng #4

Open ranyu696 opened 1 week ago

lehuygiang28 commented 1 week ago

Thank you for your interest in using our project! I've updated README file and an env.example file to help you get started. Here's what you can do:

  1. First, take a look at the README file. It contains detailed information about:

    • How to set up and run the project locally
    • How to deploy the project on various hosts
  2. Check out the env.example file in each app directory (apps/api/.env.example, apps/fe/.env.example, apps/mnt/.env.example). These files show you what environment variables you need to set up for each part of the project.

  3. After reviewing these files, if you have any questions or need clarification on any part of the setup or usage, please don't hesitate to ask. I'm here to help!

Whether you're curious about a specific feature, need help with configuration, or have any other questions, feel free to reach out. Your feedback and questions are valuable and will help improve the project documentation.

Happy coding, and I look forward to hearing from you!

ranyu696 commented 1 week ago

Tôi muốn hỏi làm thế nào để sửa đổi nó nếu tôi muốn thêm tiếng Trung đa ngôn ngữ? Và dữ liệu của bạn được thu thập như thế nào hoặc được tải lên theo cách thủ công? Tôi thực sự thích dự án này, cảm ơn bạn đã chia sẻ

lehuygiang28 commented 1 week ago

Tôi muốn hỏi làm thế nào để sửa đổi nó nếu tôi muốn thêm tiếng Trung đa ngôn ngữ? Và dữ liệu của bạn được thu thập như thế nào hoặc được tải lên theo cách thủ công? Tôi thực sự thích dự án này, cảm ơn bạn đã chia sẻ

@ranyu696 Currently, Vephim does not support multilingual functionality, but I believe with just a few setup adjustments, it could offer a multilingual interface, including Chinese.

The main challenge is that most of the current movies on Vephim are in Vietnamese with Vietnamese subtitles. If you want to fully utilize the platform, you should have a source of Chinese-language movies. If you're okay using Vietnamese subtitles instead, that's fine too!

Next, you can take a look at the i18n setup from Refine here to add multilingual support to Vephim. After that, you could build a crawler to scrape movie data for the platform. However, you also have the option to manually add content through the admin interface, though it may be a bit tedious.

As for movie sources, I recommend using third-party platforms (they've already done a great job) to store and stream movies to Vephim.

ranyu696 commented 5 days ago

Error: unable to determine transport target for "pino-pretty" Khi chạy api docker nó báo lỗi này

lehuygiang28 commented 5 days ago

Error: unable to determine transport target for "pino-pretty" Khi chạy api docker nó báo lỗi này

Set NODE_ENV=production in your apps/api/.env file.

ranyu696 commented 5 days ago

Mình thấy trang quản lý sẽ tự động làm mới trang khi mình quay lại trang tab khiến dữ liệu mình điền biến mất vì nó sẽ request api/graphql

lehuygiang28 commented 5 days ago

Mình thấy trang quản lý sẽ tự động làm mới trang khi mình quay lại trang tab khiến dữ liệu mình điền biến mất vì nó sẽ request api/graphql

It seems that the issue arises from the auth and admin check, which triggers every time you switch tabs and come back, causing the form to be cleared. I haven't had the time to fully investigate and fix this yet, but I've just added a feature that automatically saves the form data into localStorage. So in create mode, the form will not be cleared until you save it. Additionally, if you avoid fully hiding the vephim tab, it might not trigger the auth check (for example, by opening another tab but not letting it completely cover the vephim tab or go full screen).