============
How it works
============
If you want to create and deploy an app on deepchain hub, you could use the command provided in the deepchain-apps package.
Below are the main commands that should be used in a terminal:
Basic cli
---------
After installing deepchain-apps package, you will be able to use the CLI directly inside the terminal.
1. Put your personal access token (PAT) to deploy the application on `deepchain.bio `_
.. code-block:: bash
deepchain login
2. Create an application based on an empty template.
.. code-block:: bash
deepchain create myapplication
This command will download the template hosting on github in the folder **myapplication**
3. Or download a pre-existing app. First list available apps.
.. code-block:: bash
>> deepchain apps --public
----------------------------------------------
APP USERNAME
----------------------------------------------
FullInfluenzaBinding k.eloff
OntologyPredict stj.grimbly
DiseaseRiskApp jb.sevestre
Download app command : deepchain download username/app app
Apps description at : https://app.deepchain.bio/hub/apps
Then download and modifies it.
.. code-block:: bash
deepchain download user.name/appname myapplication
After creating or downloading an app, you can build your own scorer function as explained `here `_.
This `section `_ provide you some insights on how to use your app in DeepChain™.
4. Finally, you can deploy your application on deepchain. After validation, it will be available on the deepchain public `hub `_
.. code-block:: bash
deepchain deploy myapplication