Source code for the talk on Cookiecutter at Python Milano.
- 📽️ Live
Make sure you have installed the following:
git(of course)- GitHub CLI:
gh(optional) node.jsjustis a command runner (optional, recommended for contributing)
- Clone the repo
# with github CLI
gh repo clone baggiponte/pymi-cookiecutter
# with git
git clone [email protected]:baggiponte/pymi-cookiecutterNote
🎬 How to configure SSH
Cloning over SSH is safer. Follow this guide. Alternatively, you can follow the steps in this workshop of GitHub's.
- Install the dependencies
# with the command runner
just install
# Alternatively
npm install
pdm install- Open the slideshow locally
# with the command runner
just preview
# with npx
npx slidev --open -- slides.md-
Visit http://localhost:3030
-
Run the cookiecutter template:
pdm run cookiecutter sample-cookiecutterInstall the dependencies above (just is highly recommended) and the following:
commitizenis a release management tool. It's used to release new versions.
- Fork the repo
- Create your own branch.
- Before opening a PR, run the following:
just test-releaseThis will format the slides, try to build them and test whether a version bump is possibile.
Note
Credits:
slidevis an amazing framework to build slides from markdown and host them.justis just a command runner.commitizenis a release management tool.cookiecutteris an open source library to build coding project templates.