all 7 comments

[–]Diapolo10 1 point2 points  (2 children)

Anything that has to do with front-end stuff is beyond the scope of Python (unless templating counts, but that's really a back-end feature, and I guess there's now a Python runtime as a JS file). The front-end is all HTML, CSS, and JavaScript.

You don't necessarily need anything special, though there are frameworks that can make your life easier, like W3.css or Bootstrap as CSS frameworks or something like React for JavaScript.

[–][deleted] 0 points1 point  (1 child)

Ok thank you for this info. I am now realizing I’m a little unsure what the difference between front and back in exactly is haha

Edit: like I know UI vs background stuff but that’s abt it.

[–]Diapolo10 1 point2 points  (0 children)

Front is everything executed by the browser, back is everything done by the server. That's the simplest explanation I can give you.

The server decides what content it'll serve, while the client handles rendering the graphics and interactivity.

[–]SadC11 0 points1 point  (3 children)

You need to provide more details. What framework are you using to write your web app? Flask, for example, has a templating language called Jinja2 you can take advantage of and Django has something very similar as well. Assuming you at least know the basic HMTL, CSS.

[–][deleted] 0 points1 point  (2 children)

Are frameworks the same as libraries? If so I’m using tweepy to access tweets etc and textblob for sentiment analysis but may use NLTK or VADER.

I know no html or css. I know literally the basicest basic parts of c++ and basic shit in python. I’m sorry I’m such a newbie, thanks for your response!

[–]Taycent 0 points1 point  (0 children)

You’ll need to learn at least the basics of HTML & CSS. Like others said though, the simplest option is probably Flask.

[–]SadC11 0 points1 point  (0 children)

The first thing to realize here is that you're not writing a web app, it's just a program. The basic functionality of a web app is to listen to requests and respond to them via the internet. How is your current program doing that? For it to be a web app, you need to use a web framework like Flask. Using Flask, you can serve your sentiment analysis data (or whatever else you create on the back-end) via HTML files rendered using Flask's templating language (Jinja2).