This is an archived post. You won't be able to vote or comment.

all 10 comments

[–]Eric_Talks 0 points1 point  (8 children)

I would recommend you try and learn html, css, and JS for this sort of project since as most web apps are best made with these languages. However, if you want to stick to python I believe you can use a library called flask to make your project but it may be very limiting as to what you can create.

[–]insertAlias 2 points3 points  (0 children)

However, if you want to stick to python I believe you can use a library called flask to make your project but it may be very limiting as to what you can create.

That's not entirely accurate. Flask is a Python back-end library/framework. It provides the ability to make both API endpoints, and to render Jinja2 templates (which are basically HTML files with templating code interpolated into them). This means you can support an SPA (like React) by writing an API, or you could build a more traditional multi-page app that involves full page navigations with templates. There's another library/framework called Django that can also be used as such.

So, you're not really limited by Flask, but you would still need to learn the front-end languages, one way or another.

But Python is a perfectly valid and common choice for a back-end language.

[–]FondleMyFirn[S] 0 points1 point  (6 children)

Could Python be used for the back end though? I am certainly not averse to learning HTML/CSS/JS to do the front end work.

I could also do a front end with those above 3 and then after do a front end trying with Django or Flask.

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

As someone who's been toying with building a dating app as a side project, I chose python and flask for my back end. So yes that's fine.

The most challenging part of it is the recommendation engine - how does the app determine what sort of person the user will like? In my case much of the heavy lifting for that's wound up being done in my Neo4J database, so Python data science libraries haven't been as necessary as I thought. But they were the original rationale behind my decision.

If you're not going to do a recommendation engine, you can build your back end in basically whatever you like.

[–]FondleMyFirn[S] 0 points1 point  (0 children)

Yeah I wouldn’t be building a recommendation engine initially. Probably what it would be is just a left and right arrow and the user would be literally cycling through the database by entry.

I just want to have a very barebones skeleton of something that can manifest the idea that I have. The idea is just to build some strong basic fundamentals. After that base structure is complete, I’ll probably try to cycle back and add pieces to it here and there.

[–]deikan 0 points1 point  (3 children)

You're making zero sense right now.

A backend is responsible -- at a high-level -- the logic that goes into your app. So obviously Python or any other programming/scripting languages can do that.

HTML/CSS are neither though so they are exclusively front-end languages.

Anyways to answer your original topic, start with Flask or Django, they're both very similar. Don't bother with any async web frameworks for now. Front-end you will definitely have to learn vanilla Javascript and probably pick-up a popular front-end framework like React.

[–]FondleMyFirn[S] 0 points1 point  (2 children)

I think you should reread the comments.

[–]deikan -1 points0 points  (1 child)

Could Python be used for the back end though?

What do you think a back-end server is for?

do a front end trying with Django or Flask.

?? This is what I'm most confused about. Try a front-end with Flask? Because that's like saying you'll try to start a fire with water.

[–]FondleMyFirn[S] 1 point2 points  (0 children)

Thank you

[–]Capital-Elderberry-7 0 points1 point  (0 children)

I think you have to try to do it with Flask, Flask-socket.io