Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To be able to deploy a sample of the samples available on Identity Server, you need to download it onto your machine first

Follow the instructions below to download a sample the samples from GitHub.

  1. Create a folder

    in

    on your local machine and navigate to it using your command line.
    Run the following commands.

    Code Block
    languagebash
    mkdir is-samples
    cd is-samples/
    git init
    git remote add -f origin https://github.com/wso2/product-is.git
    Code Block
    languagebash
    git config core.sparseCheckout true
  2. Navigate into the into the .git/info/ directory  directory and list out the folders/files you want to check out using the using the echo command below command.    

    Code Block
    languagebash
    cd .git
    cd info
    echo "modules/samples/" >> sparse-checkout
  3. Navigate out of .git/info directory and checkout Checkout the v5.1.0 tag to update the empty repository with the remote one. 

    Code Block
    languagebash
    cd ..
    cd ..
    git checkout -b v5.1.0 v5.1.0 

    You will find the directory downloaded onto your local folder. 

     Access the samples by navigating to the <is-samples>/modules /samples directory.