* add a template module and boilerplate * add CONTRIBUTING.md (#31) * Update .sample/README.md Co-authored-by: Ben Potter <me@bpmct.net> * swap screenshot and code sample --------- Co-authored-by: Ben Potter <me@bpmct.net>
1.0 KiB
1.0 KiB
Contributing
To create a new module, clone this repository and run:
./new.sh MOUDLE_NAME
Test a module by running an instance of Coder on your local machine:
coder server --in-memory
This will create a new module in the modules directory with the given name and scaffolding. Edit the files, adding your module's implementation, documentation and screenshots.
Testing a Module
Create a template and edit it to include your development module:
Note
The Docker starter template is recommended for quick-iteration!
module "MOUDLE_NAME" {
source = "/home/user/coder/modules/MOUDLE_NAME"
}
You can also test your module by specifying the source as a git repository:
module "MOUDLE_NAME" {
source = "git::https://github.com/<USERNAME>/<REPO>.git//<FOLDER>?ref=<BRANCH>"
}
Build a workspace and your module will be consumed! 🥳
Open a pull-request with your module, a member of the Coder team will manually test it, and after-merge it will appear on the Registry.