Skip to content

Instantly share code, notes, and snippets.

@kcrwfrd
Last active December 27, 2015 00:29
Show Gist options
  • Save kcrwfrd/7238196 to your computer and use it in GitHub Desktop.
Save kcrwfrd/7238196 to your computer and use it in GitHub Desktop.
Architecture of an Angular thick client, with a Node middle tier, communicating with a separate RESTful web service.

Angular is a thick client, served by Node.js, primarily interfacing with a separate RESTful web service.

Node.js comes in for user authentication, communicating with an oAuth provider, getting the returned data, and looking up or creating the user on the web service. It then stores that user data as a session in Mongo. The user data is then made available to angular as JSON from Node.js.

Once authenticated, the Angular app should communicate directly with the RESTful web service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment