Typical AngularJS workflow and project structure (with Python Flask)

后端 未结 6 2197
梦如初夏
梦如初夏 2020-12-02 03:27

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, E

6条回答
  •  长情又很酷
    2020-12-02 03:59

    Another option is to completely separate the two.

    project
    |-- server
    |-- client
    

    Files related to flask goes under the server folder and files related to angularjs goes under the client folder. This way, it will be easier to change the backend or front-end. For example, you might want to switch from Flask to Django or AngularJS to ReactJS in the future.

提交回复
热议问题