lenra-io / lenra_cli

The Lenra's command line interface
MIT License
16 stars 1 forks source link

Create `swift` template #79

Open shiipou opened 2 years ago

shiipou commented 2 years ago

Template must run the counter app in Swift

We choose to use the same app for each template to help new developers to see how to implement they app when switching languages.

Tasks to do for:

Setting up the default app:

Setting up widgets:

Setting up listeners:

Config lenra with Dofigen

crpatil1901 commented 2 years ago

I'd like to contribute to this

shiipou commented 2 years ago

I'd like to contribute to this

First of all, thank you for you interest and your help.

I link you another comment I sent to help you to know what you need to do :


https://github.com/lenra-io/lenra_cli/issues/82

This epic contain a list of task to create a new template, each task must be small so it won't be hard for you.

There is two way to create a template :

In all cases, you have to parse the input JSON string to know what action you have to do in your tool.

For example in the V template (template-v is a CLI tool that read from stdin), I read stdin, then I find if request ask for the app manifest with an empty request, UI widget with any request that contain the widget key, for listener call with any request that contain the action key, and for resources with any request that contain the resources key in the first level of the json map.

When done, I just have to find the function to call with the widget's name, action's name or resource's name to get the app work and call it with the given arguments.

If you need more info, you can contact me at any time. I'll try to answer you quickly as I can.

The counter app we create in all template must display like this image because that the simplest way to show most of functionality Lenra provide

image

You can post PR to this repository to confirm your entry for Hacktoberfest : lenra-io/template-swift

I'll also create many Issues that represent each task you have to do. So you can do one PR for each task if you want, that allow you to validate your Hacktoberfest by doing the template.

shiipou commented 2 years ago

@crpatil1901 everything is ready for you to start your contributions.

Thank you