Skip to the content.

COVID Policy Modelling Model Connector How-To: Create repository

In this section, you will create a repository to begin development. After completion, you should have all the initial files needed to carry on with further steps.

Contents

Assumptions

The main body of these instructions assume the following:

The instructions also contain additional notes to support any of the following:

Creating your repository

  1. In your browser, visit the model-connector-template repository.

  2. Click on “Use this template”.

  3. Fill out the repository details:
    • For “Owner”, select an appropriate organisation, or your username.
    • For “Repository name”, we recommend “<MODEL>-connector”.
    • Select “Public”.
    • If your connector will be developed privately, refer to the notes below.
  4. Click on “Create repository from template”.

  5. In your terminal, clone your repository with the following command:

    $ git clone https://github.com/<USERNAME>/<MODEL>-connector.git
    
  6. You will be prompted for a password, which is the Personal Access Token created as part of setting up your GitHub account. Enter it now.

  7. Change directory into your repository:

    $ cd <MODEL>-connector
    
  8. Obtain a copy of the latest version of the input and output JSON schemas:

    $ curl https://raw.githubusercontent.com/covid-policy-modelling/schemas/main/schema/input-common.json -o input-schema.json
    $ curl https://raw.githubusercontent.com/covid-policy-modelling/schemas/main/schema/output-common.json -o output-schema.json
    

Next steps

Follow the steps for building your connector.

Additional steps for alternative approaches

The connector will be developed privately

Select “Private” instead of “Public”. All other settings should remain the same.

The connector will use a custom schema

You will first need to define and build a schema using the schema documentation. You can then copy the generated schema files into your connector repository. We recommend not publishing your schema until you have completed testing your connector. You will need to publish it however before you connector can be deployed.

The connector will use a different shared schema

Instead of the common input and output schema, you should download the appropriate files for your chosen schema.