pmachowski / angular2-starter-kit

:fire: Angular2 starter kit — production ready universal web app boilerplate (Angular 2, Server Side Rendering, Node.js/Express, Webpack, GZip)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Please Star

What we've got here

  • Server Side rendering for instant page loading
  • Preboot to catch browser events before Angular2 is ready to work.
  • Webpack and its Code Splitting feature which allows us to lazy load parts of an application if needed.
  • Live Reloading, a browser will be reloaded on any change in server or browser code. It works well for both a main thread and web workers.
  • TypeScript 2
  • Linting with TSLint
  • Express - de facto standard for Node.js web apps.
  • PM2 - most advanced Node.js process manager
  • Unit testing with Karma
  • End-to-End testing with Protractor

Installation

  • yarn install (npm install will still work)

Serve

  • npm start to build your client app and start a web server
  • npm run build to prepare a distributable bundle

Development

  • run npm start and npm run watch in two separate terminals to build your client app, start a web server, and allow file changes to update in realtime

Watch files

  • npm run watch to build your client app and start a web server

AoT and Prod

  • npm run build:prod:ngc to compile the ngfactory files and build prod

About

:fire: Angular2 starter kit — production ready universal web app boilerplate (Angular 2, Server Side Rendering, Node.js/Express, Webpack, GZip)

License:MIT License


Languages

Language:TypeScript 88.2%Language:CSS 8.3%Language:HTML 3.3%Language:JavaScript 0.3%