Translate 3 Node.js templates to Dart

Abierto
#314 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@Kettelcorn ya está trabajando en esto.

Desde el 13/1/2025.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
dart, node.js
Área
backend

Línea de trabajo

Comienza con el README de appwrite/templates para identificar las plantillas que no tienen una implementación en Dart pero sí implementaciones en Node.js; después, inspecciona las plantillas existentes en Dart y el código correspondiente en Node.js. Crea una carpeta en el directorio de Dart para cada una de las tres plantillas seleccionadas y vuelve a implementar su lógica en Dart. Se considerará terminado cuando las tres plantillas estén preparadas de forma coherente con las plantillas de Dart existentes y listas para revisión.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
HTML
Estrellas
174
Forks
129
Merge medio
14 h 35 min
PR fusionados (30 d)
12

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de appwrite/templates

Todos los issues de appwrite/templates

Issues similares

Más issues de Backend & API Design

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.