Skip to content

sullivanpt/ng2-universal-seed

Repository files navigation

Messing around with Angular 2 Universal Starter and ES2015

A minimal Angular 2 starter for Universal JavaScript using webpack Goals:

  • use Angular2
  • use universal/isomorphic JS
  • use minimal or no server transpiling (es6 imports are most noticeable loss, but also cause the most debugging pain when transpiled)
  • use webpack/babel for client transpiling
  • jasmine for server, client, and e2e
  • eslint enforcing code quality and style

Notable Branches

  • master - a messy hodgepodge of features currently using webpack
  • webpack - (stale: beta.9) demonstrates minimal angular2 universal with webpack
  • systemjs - (stale: beta.9) demonstrates minimal angular2 universal with systemjs

Installation

Tested with node 6.5.0 and npm 3.10.3 (aside: npm 3 is required for most angular2 dependencies).

  • npm install

Serve

  • gulp serve to build your client app and start a web server

For fun:

Caveats

  • there's no production build
  • security implications of server side rendering need to be considered

License

available under MIT. See LICENSE for more details.

About

Messing around with Angular2 Universal with ES2015 and Babel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published