Using and Mastering Cookiecutter Transcripts
Chapter: Sharing your Cookiecutter template with the world
Lecture: Concept: Sharing steps

Login or purchase this course to watch this video and the rest of the course contents.
0:02 Let's review the steps that we went through to create our template,
0:06 get it online, share it and submit it to the pantry.
0:10 So step one is having a template, period. So create some kind of template
0:15 I recommend using the cookiecutter-template cookiecutter template
0:19 because that's the one that helps you get started
0:21 here I've created one for Pyramid, we've already talked about it
0:24 and I want to share it, so I created the template, that was step one
0:26 and this was quite a bit of work this is complicated, we have app
0:30 and it needs a lot of documentation, so I spent at least half a day
0:34 working on this template, but you know it depends
0:36 on what kind of template or building, how much effort this step is.
0:38 Next I put it on GitHub, so already I can use this in my documentation
0:44 I can use it in training videos or instructional videos
0:48 say you want to get started with my version of a Pyramid web app
0:51 well you just cookiecutter space that URL and you're off to the races.
0:55 Having it somewhere online, GitHub is probably the best place, is the first step,
1:01 right hopefully people come along, submit pull request to my template
1:04 make it even better; next we go to the official cookiecutter template
1:07 that's and we fork it.
1:12 So we fork this to our own repository so after we have it forked
1:16 we check it out to edit it locally
1:19 I suppose if it's just restructured text if it's just those two lines
1:23 you could technically do this online, but you probably want to have
1:25 a working copy locally anyway, so you do a git clone,
1:29 notice this is my url, not theirs, that's very important
1:34 so we clone it, it comes down, we're ready to go
1:36 now we can go and edit this folder right
1:39 basically that one file is surely all we got to edit in this case
1:42 all right so like I said, make sure that that's your username not audreyr.
1:46 Next there's a whole bunch of files here this is the entire project
1:50 that generates and runs Cookiecutter as well as its documentation
1:55 but the only one we care about is this README here
1:58 so, because I'm working on a Python project I went to the Python section
2:02 and I'm going to add an entry here if I was working on assembly
2:06 I would have gone to that section right, or if I was working on-
2:11 not sure or section that doesn't exist, but if there's a section
2:14 that really makes sense for your type of work, and it doesn't exist
2:18 make anyone right, like Python online 2.99 and 300 do that for yours,
2:22 so once we've edited it we've put our entry in there
2:24 we've checked it in, here we've committed our changes back to our repository
2:31 we're going to want to create a pull request based on this
2:34 so we should have when we first do this a button right here
2:38 that says create a new pull request, or just new pull request
2:42 I don't call it the exact verbiage but because I've already done it
2:45 that button is gone, right, you saw me do that in the previous video
2:48 but you are going to have this ability to create a new pull request back to audreyr
2:52 and that's it, if you've done everything right, they like your addition
2:58 they will accept it and you will be part of the pantry, congratulations.