Skip to content

vue ssr express boilerplate #15

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

Closed
besnikh opened this issue May 4, 2017 · 5 comments
Closed

vue ssr express boilerplate #15

besnikh opened this issue May 4, 2017 · 5 comments

Comments

@besnikh
Copy link

besnikh commented May 4, 2017

Hi,
I am building my app using Vue 2, and I love it, but I see that I will need SSR on most of my pages but just by following documentation I think I am unable to finish it.

Is there any boilerplate of Vue SSR + Express + Vuex(maybe) where I could see how the structure is, how things connect and interact with each other... I would just need a hint.

Looking forward to receive from someone,
Regards,
Cheers!

@Devil-Cong
Copy link

@besnikh
Maybe you should try the Nuxt.

@egoist
Copy link

egoist commented May 5, 2017

https://github.com/vuejs/vue-hackernews-2.0 is a nice SSR example

There's also a plan for official SSR template.

@besnikh
Copy link
Author

besnikh commented May 5, 2017

@Devil-Cong I am considering using Nuxt, their documentation looks clean but their demo does not seem so fast at rending like the Vue-hackernews demo for example.

@egoist I have to take a deeper look at demo, the thing which I can't get my head around is using server entry, client entry.. I don't get it.

Let's say I build my app, I understand I would need node to run on 'client', but do I need anything else running on client side, can I make the client side communicate with my backend which will be express + nodejs.
I hope you understand my question, and I would really appreciate if someone would be ready to answer me just couple of questions regarding this "issue" I am having.

@sethdorris
Copy link

@besnikh why would you need node to run on client?

I am having issues with the documentation, understanding how the factory pattern for the createApp works if node does not support ES6 modules yet? My app continues to break on the server side of things due to this, and then when I try converting that to commonJS module system, it also breaks when I try to var createRouter = require('vue-router').createRouter;

kazupon pushed a commit that referenced this issue Jul 9, 2017
@wangyi7099
Copy link

boilerplate Inspired by vue-hackernews2.0

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

No branches or pull requests

6 participants