This repository is a template to be used when creating a new repository containing sample code, a sample application, or some other software related to Cisco technologies and to be made available for use by the Cisco DevNet community through Code Exchange and/or Automation Exchange.
You have two options, if you have familiarity with Python, use the cookiecutter steps. Otherwise you can manually create a copy of this repo template.
This process uses cookiecutter to auto-generate the files for you. This is helpful if you create multiple use cases.
Note: This template assumes the BSD 3-Clause License, you can change it be other licenses afterwards if that is not what you want.
- Issue this command
pip install cookiecutter
to get ready to use the template. - Use this command and answer the questions:
cookiecutter https://github.com/CiscoDevNet/code-exchange-repo-template
- Update the README, replacing the contents below as described in text within each section of the README. Feel free to combine or omit sections where appropriate.
- Update the LICENSE, replacing the file with the license selected for your code. See the Licensing info section of this README for more info.
- Delete these instructions and everything up to the Project Title from the README.
- Write some great software and submit it to Code Exchange and/or Automation Exchange.
use-cases$ cookiecutter https://github.com/CiscoDevNet/code-exchange-repo-template
project_name [my-awesome-devnet-code-exchange-project]: my-first-project
project_description [baseline DevNet Code Exchange Project]: New Things to come!
author_name [Your Name Here]: User Name
author_email [youremail@domain.com]: user@cisco.com
use-cases$ tree
devnet-code-exchange/ my-first-project/
cookiecutter-devnet-code-exchange/
use-cases$ tree my-first-project/
my-first-project/
├── LICENSE
├── NOTICE
└── README.md
0 directories, 3 files
use-cases$
If you are only creating one use case, this process is probably easier.
- Create a new repository.
- Copy all the files inside
manual-sample-repo
into your new repository. - Update the README, replacing the contents below as described in text within each section of the README. Feel free to combine or omit sections where appropriate.
- Update the LICENSE, replacing the file with the license selected for your code. See the Licensing info section of this README for more info.
- Delete these instructions and everything up to the Project Title from the README.
- Write some great software and submit it to Code Exchange and/or Automation Exchange.