Building Apps via Github Editor¶
Building Apps via the Github Editor allows you to build apps without having to install anything on your local machine. It is considered simpler than buildng on your local machine and is perfectly suitable for those who aren't comfortable using basic git or python commands in a terminal window.
Most of the instructions here are also part of the Quickstart Guide.
Before you Begin¶
-
Before you continue, ensure that you have completed the Pre-Requisites and Clone the Repository and Configure your Application sections of the Quickstart Guide and have the following
-
Your own forked version of MicroApp template repository
-
A github.com account
-
A streamlit.io account
-
An AI key (at least an OpenAI key)
-
Customize or Build an App¶
-
Go to your forked GitHub repository.
-
It is generally easier to modify an existing app configuration rather than start from scratch. You can use the
app_hello_world.py
app as our simplest example. If you want to modify that app to write a sonnet about you and your favorite animal (the example from Quickstart), you can replace all the content in that file with the following:```python PHASES = { "phase1": { "name": "What is your name?", "fields": { "name": { "type": "text_input", "label": "What is your first name?", }, "animal": { "type": "text_input", "label": "What is one of your favorite animals?" } }, "user_prompt": "My name is {name} and I like this animal: {animal}. Write a sonnet about me and my favorite animal.", }, } from core_logic.main import main if __name__ == "__main__": main(config=globals()) ```
-
To get a better understanding of the configuration options you have when building apps, move on to the reference documentation.
-
Click "Commit changes" to save the updated file. You'll be asked to add a commit message and confirm your commit.
Deploying to the Web¶
-
There are two ways to deploy to the web via Streamlit:
-
Deploy a Single App - Deploy a single app at a publicly accessible website.
-
Deploy your App Dashboard - Deploy a gallery of all your published apps.
-