[Owncloud] Created scaffolding tool

Bernhard Posselt nukeawhale at gmail.com
Thu May 30 15:56:37 UTC 2013


Implemented, creates everything except the database schema entries:

owncloud.py resource NAME


On 05/30/2013 04:54 PM, Thomas Müller wrote:
> Yes and the correct routes including the right http verbs: post get put delete
>
>
>
>
> -------- Ursprüngliche Nachricht --------
> Von: Bernhard Posselt <nukeawhale at gmail.com> 
> Datum:  
> An: owncloud at kde.org 
> Betreff: Re: [Owncloud] Created scaffolding tool 
>  
> Do you mean controllers with predefined create/get/update/delete methods?
>
> On 05/30/2013 03:51 PM, Thomas Müller wrote:
>> I'd love to see the created controller to be rest compliant. 
>> Related views and models etc should respect thus as well.
>>
>> Thx,
>>
>> Thomas
>>
>> -------- Ursprüngliche Nachricht --------
>> Von: Bernhard Posselt <nukeawhale at gmail.com> 
>> Datum:  
>> An: Owncloud <owncloud at kde.org> 
>> Betreff: Re: [Owncloud] Created scaffolding tool 
>>   
>> To clear some confusion:
>>
>> Scaffolding is used to quickly create new files and folders for your
>> app. It helps you to get rid of repetitive stuff, like
>>
>> * create a controller
>> * copy over controller code
>> * ajdusting code
>> * create a test for it
>> * copy over test code
>> * adjust test code
>>
>> This will likely be doable with one line (not yet implemented ;) ):
>>
>> owncloud.py controller TestController
>>
>> My personal motivation for that is that i have to write way less
>> boilerplate code in the documentation, it allows me to get rid of a ton
>> of stuff, i dont have to reference templates and tell users what to
>> replace. I can simply tell them: If you want to develop an app do:
>>
>> sudo pip install owncloud_scaffolding && owncloud.py startapp my_app
>>
>> Its also easy to integrate best practices :)
>>
>>
>> Bernhard Posselt <nukeawhale at gmail.com> schrieb:
>>>> Hi,
>>>>
>>>> I kinda worked on a scaffolding tool today which basically replaces the
>>>> apptemplate and apptemplate addvanced. It is installable via pip:
>>>>
>>>> sudo pip install owncloud_scaffolding
>>>>
>>>> and is hosted on
>>>> https://pypi.python.org/pypi?:action=display&name=owncloud_scaffolding&version=0.1.2
>>>> The source is available here:
>>>> https://github.com/Raydiation/owncloud_scaffolding
>>>>
>>>> Currently it only supports creating apps, you run it like this:
>>>>
>>>> owncloud.py startapp my_app_name  # apps with appframework and angular
>>>>
>>>> or
>>>>
>>>> owncloud.py startapp --type classic my_app_name # classic owncloud app
>>>>
>>>>
>>>> It prompts some defaults and then creates a complete app structure with
>>>> filled out files in the current directory.
>>>>
>>>>
>>>> Frank could you delete the apptemplateadvanced repo? If you want the
>>>> tool in the official repo you can create a seperate repository ;)
>>>> _______________________________________________
>>>> Owncloud mailing list
>>>> Owncloud at kde.org
>>>> https://mail.kde.org/mailman/listinfo/owncloud
>> _______________________________________________
>> Owncloud mailing list
>> Owncloud at kde.org
>> https://mail.kde.org/mailman/listinfo/owncloud
>>
>>
>> _______________________________________________
>> Owncloud mailing list
>> Owncloud at kde.org
>> https://mail.kde.org/mailman/listinfo/owncloud
> _______________________________________________
> Owncloud mailing list
> Owncloud at kde.org
> https://mail.kde.org/mailman/listinfo/owncloud
>
>
> _______________________________________________
> Owncloud mailing list
> Owncloud at kde.org
> https://mail.kde.org/mailman/listinfo/owncloud




More information about the Owncloud mailing list