How to create a flash application with angular 4 as the front end

I am new to angular 4 and flask. I am familiar with how flask applications are structured. I am creating a simple to-do to-do list and using angular 4 as the front end. I used to have angularJs, and I just used html files with the angularJS template built into it in the templates folder

flaskapp
|--static |--js |--css |-img |--templates |-app.py

Now I'm studying angular 4 and trying to convert the same application to angular 4, but I'm not sure how to integrate the folders created when creating the angular 4 project. For example, when I create the angular 4 project, it generates the src folder and then the folder applications in it, and then component files in it, should I just create the same project in the template folder of my application project in a flask? Please, help.

+4
source share
1 answer

This is definitely a great structure to learn. This type of structure is called a client-server application, where Flask is the server and Angular 4 is the client.

I have Flask_Angular4_Skeleton already compiled on Github, feel free to take a look at it and clone it, deploy or download the source files.

I have a detailed explanation of the structure and directions of the application for downloading and getting started.

Link: https://github.com/hawzie197/Flask_Angular4_Skeleton

+7
source

Source: https://habr.com/ru/post/1685252/


All Articles