Giter Club home page Giter Club logo

Comments (6)

helfer avatar helfer commented on March 29, 2024

I'm not familiar with angular universal. What is it, and what would it mean to integrate with it?

from apollo-server.

bkinsey808 avatar bkinsey808 commented on March 29, 2024

It speeds up angular 2 apps significantly, especially on the initial page, by rendering on the server. The react ecosystem also has server side rendering, but I've never played with it. A good full stack system really ought to have it. As far as i know, angular universal has so far only been implemented for express, and not hapi, koa, etc.

from apollo-server.

helfer avatar helfer commented on March 29, 2024

Ah I see. This is mostly up to the view layer integration, I think. The GraphQL server will have very little to do with this and should just work out of the box for it.

I think we have somethin in the pipelines for the react-bindings: apollographql/react-apollo#54

For something similar in Angular, you should probably close the issue here and open it on the angular2-apollo repo: https://github.com/apollostack/angular2-apollo

from apollo-server.

bkinsey808 avatar bkinsey808 commented on March 29, 2024

But server side rendering must be done on the server. So it is not really a client side issue. However it is true that the angular universal server could be run on a separate server than the api (graphql) server. It seems like apollo project as a whole needs to think about this assuming it is serious about deeply integrating with angular 2.

from apollo-server.

helfer avatar helfer commented on March 29, 2024

Yes, it has to be done on a server, but it doesn't affect the graphql part of the server. The more challenging part is making sure that whatever code people write for the frontend can be rendered by the server as well, which is why I think it makes most sense if @Urigo takes a look first. If there's anything we need to do server-side to make it possible, I can take care of that.

from apollo-server.

bkinsey808 avatar bkinsey808 commented on March 29, 2024

sounds good, thanks.

from apollo-server.

Related Issues (20)

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.