diff --git a/pollination_apps/template/assets/{{cookiecutter.project_slug}}/README.md b/pollination_apps/template/assets/{{cookiecutter.project_slug}}/README.md index 9d35543..14302fc 100644 --- a/pollination_apps/template/assets/{{cookiecutter.project_slug}}/README.md +++ b/pollination_apps/template/assets/{{cookiecutter.project_slug}}/README.md @@ -22,34 +22,26 @@ Start Streamlit ``` -Make changes to your app in the `app.py` file. +Make changes to your app in the `app.py` file in the "app". ## Run inside Docker image locally (Optional) -You can run the app locally inside Docker to ensure the app will work fine after the -deployment. -You need to install Docker on your machine in order to be able to run this command - -``` -> pollination-apps run {{ cookiecutter.pollination_owner }} --name "{{ cookiecutter.project_name }}" -``` +You can run the app locally inside Docker to ensure the app will work fine after the deployment. -## Push to Pollination -Push you app to pollination to share it with others. - -Login to pollination: +You need to install Docker on your machine in order to be able to run this command ``` -> pollination-apps login +> pollination-apps run app {{ cookiecutter.pollination_owner }} --name "{{ cookiecutter.project_name }}" ``` -Deploy your app to pollination: +## Deploy to Pollination ``` -> pollination-apps deploy . --name "{{ cookiecutter.project_name }}" --{{ cookiecutter.app_visibility }} +> pollination-apps deploy app --name "{{ cookiecutter.project_name }}" --{{ cookiecutter.app_visibility }} -api "Your api key from pollination" ``` {% if cookiecutter.ci == "github-actions" %} + ## Configure Github Actions In order to configure github actions to deploy your app you will need to: diff --git a/pollination_apps/template/assets/{{cookiecutter.project_slug}}/app.py b/pollination_apps/template/assets/{{cookiecutter.project_slug}}/app.py deleted file mode 100644 index 0eeebe5..0000000 --- a/pollination_apps/template/assets/{{cookiecutter.project_slug}}/app.py +++ /dev/null @@ -1,20 +0,0 @@ -import streamlit as st - -st.set_page_config( - page_title='Hello Pollination <> Streamlit', layout='wide', - page_icon='https://app.pollination.cloud/favicon.ico' -) - -# branding, api-key and url -# we should wrap this up as part of the pollination-streamlit library -st.sidebar.image( - 'https://uploads-ssl.webflow.com/6035339e9bb6445b8e5f77d7/616da00b76225ec0e4d975ba_pollination_brandmark-p-500.png', - use_column_width=True -) - -api_key = st.sidebar.text_input( - 'Enter Pollination APIKEY', type='password', - help=':bulb: You only need an API Key to access private projects. ' - 'If you do not have a key already go to the settings tab under your profile to ' - 'generate one.' -) or None diff --git a/pollination_apps/template/assets/{{cookiecutter.project_slug}}/Dockerfile b/pollination_apps/template/assets/{{cookiecutter.project_slug}}/app/Dockerfile similarity index 100% rename from pollination_apps/template/assets/{{cookiecutter.project_slug}}/Dockerfile rename to pollination_apps/template/assets/{{cookiecutter.project_slug}}/app/Dockerfile diff --git a/pollination_apps/template/assets/{{cookiecutter.project_slug}}/app/app.py b/pollination_apps/template/assets/{{cookiecutter.project_slug}}/app/app.py new file mode 100644 index 0000000..3315287 --- /dev/null +++ b/pollination_apps/template/assets/{{cookiecutter.project_slug}}/app/app.py @@ -0,0 +1,3 @@ +import streamlit as st + +st.write("Welcome! Start writing your Pollination app here.") diff --git a/pollination_apps/template/assets/{{cookiecutter.project_slug}}/app/requirements.txt b/pollination_apps/template/assets/{{cookiecutter.project_slug}}/app/requirements.txt new file mode 100644 index 0000000..1662f23 --- /dev/null +++ b/pollination_apps/template/assets/{{cookiecutter.project_slug}}/app/requirements.txt @@ -0,0 +1 @@ +pollination-streamlit>=0.2.1 diff --git a/pollination_apps/template/assets/{{cookiecutter.project_slug}}/requirements.txt b/pollination_apps/template/assets/{{cookiecutter.project_slug}}/requirements.txt deleted file mode 100644 index 2ee6d03..0000000 --- a/pollination_apps/template/assets/{{cookiecutter.project_slug}}/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -pollination-streamlit>=0.1.1