Skip to content

Ckearns1210/star_wars_angular2

Repository files navigation

###An experiment with RXjs observables, dependent/chained async http calls, state control, and ngAnimate.

Working plunker example here:

http://plnkr.co/edit/5SEjvEU1nV9jtTaLLDnf?p=preview

(slightly different setup with systemJS instead of webpack and no Material UI library)

Quick start

Make sure you have Node version >= 4.0 and NPM >= 3 and your text editor is setup for Typescript

clone repo

git clone https://github.com/Ckearns1210/star_wars_angular2.git

change directory to repo

cd star_wars_angular2

add required global libraries if you do not have

npm install typings webpack-dev-server rimraf webpack -g

install the repo with npm

npm install

start the server

npm start

use Hot Module Replacement (you want to do this in dev)

npm run server:dev:hmr

go to http://0.0.0.0:3000 or http://localhost:3000 in your browser

#Production Build

Make build (dist folder) by running the following command from the root star_wars_angular2 Folder

cd star_wars_angular2 (make sure you are in the root and on the right branch) npm run build:prod

About

Angular 2 Http Sample App with RxJs and NgAnimate using http://swapi.co/ API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published