Git Product home page Git Product logo

cookiecutter-kolibri-plugin's Introduction

Cookiecutter Kolibri Plugin

Minimal Cookiecutter template for generating Kolibri plugins.

Usage

  • Install Cookiecutter.

    $ pip install cookiecutter

  • Install le-utils.

    $ pip install le-utils

  • Generate a new Kolibri plugin within the directory of your choice.

    $ cookiecutter https://github.com/learningequality/cookiecutter-kolibri-plugin

  • Select a readable plugin name.

    e.g. Vector Video Player.

  • You will then be prompted to enter a description, a repository url, and author details.

  • If you would like to change the default pypi package name, you can modify it.

    Must be kolibri_lowercase_separated_by_underscores (ie. kolibri_vector_video_player).

  • If you would like to change the default plugin Class name for the Javascript class, you can modify it.

    Must be UpperCamelCase. (ie. VectorVideoPlayer).

  • Select if this is a frontend plugin (i.e. it will provide a Javascript module for frontend code)

  • Select if this plugin will have its own page within the Django app - if you are creating an extension of existing functionality in Kolibri, this will not be the case - such as a content renderer plugin.

  • Select if this plugin is a content renderer plugin, and what content kind and file extension it handles. If you are not creating a content renderer plugin, you may safely ignore these options.

  • Install the newly generated plugin in Kolibri.

    $ pip install -e <LOCAL_PATH_TO_THE_PLUGIN_DIRECTORY>

  • Enable the plugin on Kolibri.

    $ kolibri plugin <plugin_name> enable

  • Restart the Kolibri server.

  • If the plugin has its own page, you can test the plugin by visiting http://127.0.0.1:8000/<plugin_name>

cookiecutter-kolibri-plugin's People

Contributors

66eli77 avatar aronasorman avatar christianmemije avatar rtibbles avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.