Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do you have some example of implementation? #2

Closed
askz opened this issue Feb 1, 2017 · 3 comments
Closed

Do you have some example of implementation? #2

askz opened this issue Feb 1, 2017 · 3 comments

Comments

@askz
Copy link

askz commented Feb 1, 2017

Hi again,

I'm stuck with the integration when I need to run flask and webpack etc.
Can't see were to start..
I saw in your livetv mining project that you got separate frontend/backend, is it easier?

@taogeT
Copy link
Owner

taogeT commented Feb 4, 2017

Hi @askz,

Sorry for replying you so late. (I‘m on vacation)

In my opinion, both ways (split frontend/server or not) have specific difficulties. The case you choose depends on the product environment. For my project livetv_mining, it deploys on AWS Free Tier server and free server performance is poor. So I had to use split case(and other subplan) to save CPU work time.
In real life, many internet companies choose the popular solution: RESTAPI + iOS + Android + Web and more traditional companies choose integration all on server.

So my suggestion is that: If you are a beginner about Flask, you can start from tutorial: flasky (py3 version). If you have use experience about Flask, you can learn how to split frontend/server immediately. The examples I refer to are vue-hackernews-2.0 webpack2.0, vuejs-templates webpack1.0 and webpack official document.

Would it help you to smooth learning curve ?

@askz
Copy link
Author

askz commented Feb 5, 2017

Thank you.
I was really wondering why you did that package (flask-vue) and on the other having a vue project with splitted front/back.

I will definitely check the split solution !

Cheers!

@askz askz closed this as completed Feb 5, 2017
@taogeT
Copy link
Owner

taogeT commented Feb 6, 2017

@askz

Simple put, I had a flask/vue project which should be deployed inner & outer net in the meantime.

When you visit website in outer net, the best way to save net flow is using CDN for scripts resource. When you visit website in inner net, the visitor can not get resource stored outer network. At the same time, the developers need to deploy project easy and configurable.

So I package the flask-vue and it can config project to use CDN or Local files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants