Skip to content

angular2 fullstack nodejs server structureΒ #1184

@manuelfink

Description

@manuelfink

Just trying to figure out whats the best way to build an angular 2 fullstack application, where the nodejs server is serving both, a backend endpoint (eg rest/graphql/apollo) as well as the angular 2 app?

  1. Is there any structural work / concepts done on this already? Is this in the mind of the angular-cli team?
  2. Whats the "best practice" structure?
    • Having 2 git projects, one for backend, one for the frontend? (If yes how do you wire these together while developing and later in production? how you later server them from one nodejs server?)
    • Having 1 nodejs server for the backend as well as frontend (how you expose node_modules and stuff for development and only deploy a build version in production? How you handle node modules?
  3. How does a build scenario for this look like?
  4. What about server side rendering and angular universal in this context? Any work done in this direction yet? (I'd like to build on a structure which will allow to add server side rendering in future.)
    • How does angular universal resolve data loading?

Even though the question does not fit the bug reports I hope its the right place to ask this question?

Thx I really appreciate your expertise!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions