My name is James Yeung
- 👨💻 I’m a Microsoft MVP.
- 🔭 I’m currently working on Ant Design Blazor.
- 🌱 I’m currently learning reactive architecture.
- 💕 I’m an open source enthusiast.
- 🖖 I’m a system architecture developer.
Hosting vuetify docs project with aspnetcore, which support server-side-prerendering(ssr)
License: MIT License
My name is James Yeung
There are two sets of webpack config files in the project.
and in the root. Are these all used? What is the relationship between them? Thanks!
@ElderJames hey thanks so much for this. I really appreciate it. All of this is quite new to me so I am wondering if you could answer a question or two for me. I'm trying to understand the general life cycle of an Server Side Rendered Vue app using asp.net core. Does this look correct to you?
Client makes a page request to .Net Core controller/API action
A prerenderer call is made from the controller action to a .js file on the server
I am really not clear what happens in the renderOnServer.js file other than I see an INITIAL_STATE is set that is then applied in the entry.js.
I am using .net Core Identity cookie authentication. And so on the initial request of my app I return the app payload and the first thing that happens is the Vuex store makes a call back to the server to see if the user is authenticated. if they are they are pushed to the requested route. If not they are pushed to the login. Ideally I can avoid this and do it on the server. I'm not quite understanding how this works with SSR. Will node/nodeservices execute an api call like in my case (isAuthenticated)? Is there some way to return a state object from the first controller call that can be passed directly to client bundle or serverbundle?? Or can NodeServices make those api calls?
Hi dude,
I am keen to see what you have done but I cannot run the application VS2017 because of the pre-rendering. Could you please tell me how I can fix it:
Microsoft.AspNetCore.NodeServices.HostingModels.NodeInvocationException: window is not defined
Thanks for your help
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.