Translate 3 Node.js templates to Dart

Đang mở
#314 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Kettelcorn đang làm issue này rồi.

Từ ngày 13/1/2025.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
dart, node.js
Lĩnh vực
backend

Hướng nghiên cứu

Bắt đầu với README của appwrite/templates để xác định các template còn thiếu phần triển khai bằng Dart nhưng đã có phần triển khai bằng Node.js, sau đó kiểm tra các template Dart hiện có và mã Node.js tương ứng. Tạo một thư mục trong thư mục Dart cho mỗi template trong số ba template được chọn và triển khai lại logic của chúng bằng Dart. Công việc được xem là hoàn tất khi cả ba template đều được chuẩn bị nhất quán với các template Dart hiện có và sẵn sàng để xem xét.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

codeday

Introduction

Appwrite allows developers to run serverless functions on Appwrite Cloud. While most of the business logic requires entirely custom code, parts of the application have a generic solution.

To address this problem, Appwrite introduced Function templates, allowing developers to use templates for problems such as Stripe payments, AI prompting, or generating invoices.

Those templates are meant to be extended by the developer to precisely fit the needs of their application. Considering that developers come from different backgrounds and experiences, Appwrite Functions supports templates for over 10 languages.

Starting this issue requires an understanding of Node.js and Dart syntax. Finishing this issue will give you a basic understanding of Chat GPT, the code review process, and writing quality code.

Task summary

Your goal is to prepare 3 Appwrite Function templates in Dart programming language.

1. Pick 3 templates you want to translate

Look at appwrite/templates README, and look for templates that are missing implementation in Dart. Pick 3 templates you want to work on, and make sure they have been implemented in Node.js.

We highly recommend picking an integration template with the tool you are familiar with. If you are up for a challenge, pick the ones you wanted to learn but didn't have time to check out yet.

2. Translate templates from Node.js to Dart

For each template, prepare a folder inside the Dart directory. Initial setup shouldn't be a problem if you are familiar with Dart, but it's also perfectly fine to look at other Dart templates to see what they look like.

Once you have folders ready, look at the template implementation in Node.js, which shows you how the template was implemented in JavaScript. You should read the code and understand it clearly.

Finally, re-implement the same logic in Dart. It's not necessary to follow it line-by-line, but it's best to follow the same logical structure.

In this step, you are allowed to use ChatGPT to help you out, but please don't copy entire chunks of code. Use it as a tool to show you what a solution could look like, but make sure you are the one making a decision about what the final PR looks like.

Ngôn ngữ chính
HTML
Star
174
Fork
129
Merge trung bình
14 giờ 35 phút
Pull request đã merge (30 ngày)
12

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của appwrite/templates

Tất cả issue của appwrite/templates

Issue tương tự

Thêm issue về Backend & API Design

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.