Code behind this very popular reddit post.
The backend folder contains an API that, given the ID of a reddit post, periodically fetches its comments and upvotes. Dependencies: FastApi, praw, uvicorn
The fontend folder contains a responsive and lightweight website that fetches the data from the API and dispays it using D3.js.
I would recommend using a Python WSGI HTTP Server like gunicorn together with NGINX for the API and any websever should do for the frontend.
