Streamlit dashboard with plotly plots. Deployed with nginx on AWS EC2 - Census Dashboards

Hello,

Please check out my new streamlit dashboard built on U.S. census 2020 data.

https://censusdashboards.com/

Thank you!

2 Likes

Do you have a link to instructions on how to deploy?

I followed the instructions from this medium article by Steven Munn.

Also, many thanks to @dataprofessor for all the tutorials and youtube videos. Very helpful!

Thank you!

1 Like

There are some deployment options here: Deploy Streamlit apps - Streamlit Docs. I’m tring the Docker route + ECS + Fargate to take advantage of the autoscaling and easy updates.

1 Like

@nstepka
Your All in one Data Analysis app is an awesome idea! Are you considering aws for your deployment? Please let me know if you need any help.

Thank you!

Hi Kumar,

Great data visualization app, congratulations on deploying it on AWS successfully with https. I have been attempting to do the same for my streamlit app https://putdebitspread.streamlit.app/ but to no avail. Do you think you could help me? Thank you

@POP,

Thank you for the kind note.
Sure. Will be glad to help. As I stated above in this thread, I followed the steps laid out in this medium article: Running Streamlit on Amazon EC2 with HTTPS | by Steven Munn | Medium.

I setup streamlit as a systemd service, used nginx with reverse proxy for web server, and https://letsencrypt.org/ for certs.

Please let me know if you have any questions.

Thank you!

Hi Kumar,

I am having issues with the Medium article you provided as it did not explain how to connect the streamlit app with the AWS server. I am not quite experienced with AWS and may require some additional guidance.

Would it be possible for you to walk me through the steps you took, perhaps on a call if you have time available?

Thank you

@POP,
Apologies, this is my nights/weekends endeavor. I really don’t have time to do a call/walk-through. But here are some resources that helped me quite a bit on my AWS journey.

Hope this helps.

Thank you!

1 Like

You can also look at using Cloudflare to host your domain name and then point it to your Streamlit app. It can manage the certificate for you.

Fun to browse through the data. I enjoyed checking out the data in different states.

I noticed that the Gender plot kept switching gender labels… sometimes the right side was male, sometimes female.

1 Like

@shawngiese I’m currently using Namecheap shared hosting to host my domain name, I’m just having issues with pointing it to my Streamlit app.

You may need to get a fixed IP and then attach that to your EC2. Then I think you can change the A record of the DNS. I have my app behind an AWS application load balancer. No static IP address but it gives me a fixed A Record / domain name. I can load that into the cname record of DNS and so it can point to my load balancer and get to my app. I do not think that you have to host your domain name in Cloudflare to do this.

Thank you for the feedback @shawngiese. Appreciate it very much! :slight_smile:

Updated the app to always show females on the left and males on the right. It was previously sorting by % values.

Please let me know if you are still seeing the gender labels switching.

1 Like

@POP, are you trying to create a DNS record from Namecheap domain name to your app hosted on streamlit cloud? It might be possible to create a CNAME record: https://ns1.com/resources/cname. I’m not sure though.