Need a sample cookbook guidance

For example, I want to install an app-server in a node, the app-server will
be download from a repository: gitx//trunk/app, and the version is 1234.
How should I write the cookbook?

I’m a new to Chef stuff. :slight_smile:

–
Thanks & Best Regards,

Dikang Gu