Giter Club home page Giter Club logo

aspnetcore-vuetify-universal's Introduction

Hi there 👋

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.

Github Stats

aspnetcore-vuetify-universal's People

Contributors

elderjames avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

aspnetcore-vuetify-universal's Issues

Cannot run the repo prerendering issues

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

SSR initial controller request life cycle

@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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.