Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sirselim/streamlit_app_test
A small repo to test out streamlit, a new tool for serving awesome web-based python apps.
https://github.com/sirselim/streamlit_app_test
Last synced: 27 days ago
JSON representation
A small repo to test out streamlit, a new tool for serving awesome web-based python apps.
- Host: GitHub
- URL: https://github.com/sirselim/streamlit_app_test
- Owner: sirselim
- Created: 2019-11-26T23:34:30.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-12T18:35:55.000Z (5 months ago)
- Last Synced: 2024-10-18T12:22:37.886Z (3 months ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# streamlit_app_test
A small repo to test out streamlit, a new tool for serving awesome web-based python apps.This is a testing repo that details a basic app and how to deploy it using the Heroku service.
# create an app
[This section will be fleshed out at a later date.]
Create an app using [streamlit](https://streamlit.io).
Once streamlit is installed on your local machine you can run the app in this repo via:
`streamlit run https://raw.githubusercontent.com/sirselim/streamlit_app_test/master/test_app.py`
For something a little fancier try (*Warning*: this will pull ~250Mb of data):
`streamlit run https://raw.githubusercontent.com/streamlit/demo-self-driving/master/app.py`
When you are ready to deploy to the web [Heroku](www.heroku.com) is a simple, free option.
# set up Heroku
Get an account, sign up at [Heroku](www.heroku.com).
Install cli (Linux method below):
`sudo snap install heroku --classic`
Login (in app directory):
`heroku login`
Deploy app:
`heroku create`
Push code to that instance:
`git push heroku master`
Check running:
`heroku ps:scale web=1`
Visit the app site:
`heroku open`
## deploy to heroku
To deploy to Heroku you need to have at least these four files present:
* the pythong app (`test_app.py` here)
* a `Procfile` - test Heroku how/what to run
* a `requirements.txt` file - packages to load (dependencies)
* `setup.sh` - server setup instructions*Note:* it seems that you might also need to have the app already setup as a git repo. I was getting an error until I pushed it to my GitHub. Need to look into this further.