Skip to content

ohcnetwork/care_demo_facility_setup

Care Demo Facility Setup

This plug helps setup a demo facility with a hel

Local Development

To develop the plug in local environment along with care, follow the steps below:

  1. Go to the care root directory and clone the plugin repository:
cd care
git clone git@github.com:ohcnetwork/Care Demo Facility Setup.git
  1. Add the plugin config in plug_config.py
...

Care Demo Facility Setup_plugin = Plug(
    name=Care Demo Facility Setup, # name of the django app in the plugin
    package_name="/app/Care Demo Facility Setup", # this has to be /app/ + plugin folder name
    version="", # keep it empty for local development
    configs={}, # plugin configurations if any
)
plugs = [Care Demo Facility Setup_plugin]

...
  1. Tweak the code in plugs/manager.py, install the plugin in editable mode
...

subprocess.check_call(
    [sys.executable, "-m", "pip", "install", "-e", *packages] # add -e flag to install in editable mode
)

...
  1. Rebuild the docker image and run the server
make re-build
make up

Important

Do not push these changes in a PR. These changes are only for local development.

Production Setup

To install care Care Demo Facility Setup, you can add the plugin config in care/plug_config.py as follows:

...

Care Demo Facility Setup_plug = Plug(
    name=Care Demo Facility Setup,
    package_name="git+https://github.com/ohcnetwork/Care Demo Facility Setup.git",
    version="@master",
    configs={},
)
plugs = [Care Demo Facility Setup_plug]
...

Extended Docs on Plug Installation

This plugin was created with Cookiecutter using the ohcnetwork/care-plugin-cookiecutter.

About

This plug helps to setup a facility

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors