👻 Check our latest review to choose the best laptop for Machine Learning engineers and Deep learning tasks!
I am pretty new to this whole MV* client-side framework frenzy. It doesn"t have to be AngularJS, but I picked it because it feels more natural to me than either Knockout, Ember or Backbone. Anyway what is the workflow like? Do people start with developing a client-side application in AngularJS and then hooking up the back-end to it?
Or the other way around by first building the back-end in Django, Flask, Rails and then attaching an AngularJS app to it? Is there a "right" way of doing it, or is it just a personal preference in the end?
I am also not sure whether to structure my project according to the Flask or AngularJS? community practices.
For example, Flask"s minitwit app is structured like so:
minitwit
|-- minitwit.py
|-- static
|-- css, js, images, etc...
’-- templates
|-- html files and base layout
AngularJS tutorial app is structured like this:
angular-phonecat
|-- app
’-- css
’-- img
’-- js
’-- lib
’-- partials
’-- index.html
|-- scripts
’-- node.js server and test server files
I could picture a Flask app by itself, and it"s fairly easy to see AngularJS app like ToDo List by itself but when it comes to using both of these technologies I don"t understand how they work together. It almost seems like I don"t need a server-side web-framework when you already have AngularJS, a simple Python web server will suffice. In the AngularJS to-do app for example they use MongoLab to talk to the database using Restful API. There was no need having a web framework on the back-end.
Maybe I am just awfully confused, and AngularJS is nothing more than a fancy jQuery library so I should use just like I would use jQuery in my Flask projects (assuming I change the AngularJS template syntax to something that doesn"t conflict with Jinja2). I hope my questions make some sense. I mainly work on the back-end and this client-side framework is an unknown territory for me.
👻 Read also: what is the best laptop for engineering students?
We hope this article has helped you to resolve the problem. Apart from Typical AngularJS workflow and project structure (with Python Flask), check other __main__ Python module-related topics.
Want to excel in Python? See our review of the best Python online courses 2023. If you are interested in Data Science, check also how to learn programming in R.
By the way, this material is also available in other languages:
- Italiano Typical AngularJS workflow and project structure (with Python Flask)
- Deutsch Typical AngularJS workflow and project structure (with Python Flask)
- Français Typical AngularJS workflow and project structure (with Python Flask)
- Español Typical AngularJS workflow and project structure (with Python Flask)
- Türk Typical AngularJS workflow and project structure (with Python Flask)
- Русский Typical AngularJS workflow and project structure (with Python Flask)
- Português Typical AngularJS workflow and project structure (with Python Flask)
- Polski Typical AngularJS workflow and project structure (with Python Flask)
- Nederlandse Typical AngularJS workflow and project structure (with Python Flask)
- 中文 Typical AngularJS workflow and project structure (with Python Flask)
- 한국어 Typical AngularJS workflow and project structure (with Python Flask)
- 日本語 Typical AngularJS workflow and project structure (with Python Flask)
- हिन्दी Typical AngularJS workflow and project structure (with Python Flask)
California | 2023-01-27
I was preparing for my coding interview, thanks for clarifying this - Typical AngularJS workflow and project structure (with Python Flask) in Python is not the simplest one. I am just not quite sure it is the best method
Massachussetts | 2023-01-27
Thanks for explaining! I was stuck with Typical AngularJS workflow and project structure (with Python Flask) for some hours, finally got it done 🤗. Will use it in my bachelor thesis
Shanghai | 2023-01-27
I was preparing for my coding interview, thanks for clarifying this - Typical AngularJS workflow and project structure (with Python Flask) in Python is not the simplest one. Will get back tomorrow with feedback