How to create a webapp and deploy it

This is my tutorial on how to create and publish a webapp written in Python, interfaced with Streamlit and brought online with Heroku.

Introduction

Creating algorithms and applications has a precise purpose: to use them outside of your PC. Using them "locally" risks being a big limitation. Hence my need to find a way to bring small applications online, so that they can be used by more people, without having to go through me or my PC.

To do this you need 3 ingredients: GitHub, Streamlit and Heroku.

The process

GitHub

First you need to create a folder on your GitHub account with only the README file where we describe the application we are going to create. Once created the folder we can copy it locally with the usual command:

git clone https://... .git

Streamlit

At this point we have to start filling the folder.

Now you need to create files useful for future development on Heroku's servers. The files you need are the following:

Heroku

Now let's move on to the work phase on Heroku. First you need to install Heroku CLI on your PC and create a free account. Once this is done, we can go back to the terminal and complete the necessary steps to bring our application online. Let's get started!

At this point in the terminal will appear the link of our application that we can use and share.

Conclusion

As you have read the process is very simple and immediate and in my opinion it is ideal to bring small applications, demos and whatever else online. The applications I built with this procedure are the following (you can find their files in my GitHub page):

The end

Thank you for your attention, that's all for today! See you at the next post! :)

For information please do not hesitate to contact me: daniele.davino@live.it