Streamlit based web application which uses python and snowflake to display the status of the citibike station in the NY region.
The dataset which was used in here: https://gbfs.citibikenyc.com/gbfs/en/station_status.json
- Don't forget to ⭐ the repository!
- We will be editing the code in GitHub itself so need to clone it locally all you have to do is:
- Fork this repository.
- Store this secrets on clipboard or any file.
[snowflake]
user = "snowflakedemo"
password = "Snowflake@123"
account = "zx88924.ca-central-1.aws"
warehouse = "compute_wh"
database = "citibike"
schema = "public"
-
You can do run Streamlit app on your local machine or Streamlit Cloud
- Local machine
- Install dependencies and streamlit framework
pip install streamlit pip install -r requirements.txt
- Create new file under
.streamlit/secrets.toml
and paste the given text from step 2 - Run streamlit app
streamlit run streamlit_app.py
- Install dependencies and streamlit framework
- Streamlit Cloud
- Go to streamlit.io and sign-in if you have an account or create a new one (Always choose github sign in)
- Create a new app on streamlit and select the forked repository and let the main file path remain the as the same!
- Now click on
Advanced settings
and paste the given text from step 2 intosecrets
. - Press
Deploy
and wait for streamlit project provision
- Local machine
-
After deploying you can make changes in
streamlit.py
file in github itself by editting and commiting. -
Create a PR when done. :smile: Happy contributing!!!