55 lines
2.1 KiB
Markdown
55 lines
2.1 KiB
Markdown
|
|
<p align="center">
|
|
|
|
<img src="https://cloud.githubusercontent.com/assets/1016365/10639063/138338bc-7806-11e5-8057-d34c75f3cafc.png" alt="Universal Angular 2" height="320"/>
|
|
|
|
</p>
|
|
|
|
# Angular 2 Universal Starter [![Universal Angular 2](https://img.shields.io/badge/universal-angular2-brightgreen.svg?style=flat)](https://github.com/angular/universal)
|
|
> Server-Side Rendering for Angular 2
|
|
|
|
A minimal Angular 2 starter for Universal JavaScript using TypeScript 2 and Webpack 2
|
|
|
|
> If you're looking for the Angular Universal repo go to [**angular/universal**](https://github.com/angular/universal)
|
|
|
|
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)
|
|
|
|
## Installation
|
|
|
|
* `npm install`
|
|
|
|
## 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
|
|
|
|
|
|
|
|
### Documentation
|
|
[Design Doc](https://docs.google.com/document/d/1q6g9UlmEZDXgrkY88AJZ6MUrUxcnwhBGS0EXbVlYicY)
|
|
|
|
### Videos
|
|
Angular 2 Universal Patterns - ng-conf, May 2016
|
|
[![Angular 2 Universal Patterns](http://img.youtube.com/vi/TCj_oC3m6_U/0.jpg)](https://www.youtube.com/watch?v=TCj_oC3m6_U)
|
|
|
|
Angular Universal Source Code - ReadTheSource, January 2016
|
|
[![Angular Universal Source Code](http://img.youtube.com/vi/qOjtFjXoebY/0.jpg)](https://www.youtube.com/watch?v=qOjtFjXoebY)
|
|
|
|
Full Stack Angular 2 - AngularConnect, Oct 2015
|
|
[![Full Stack Angular 2](https://img.youtube.com/vi/MtoHFDfi8FM/0.jpg)](https://www.youtube.com/watch?v=MtoHFDfi8FM)
|
|
|
|
Angular 2 Server Rendering - Angular U, July 2015
|
|
[![Angular 2 Server Rendering](http://img.youtube.com/vi/0wvZ7gakqV4/0.jpg)](http://www.youtube.com/watch?v=0wvZ7gakqV4)
|
|
|
|
## [preboot.js](https://github.com/angular/preboot)
|
|
> Control server-rendered page and transfer state before client-side web app loads to the client-side-app.
|
|
|
|
# License
|
|
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](/LICENSE)
|