marcusasplund / addressbook

Demo of how to solve the task of making an addressbook with local storage capability
MIT License
1 stars 0 forks source link
angular angular2-material ngrx ngrx-store rxjs typescript

Build status dependencies Stack Share

demo

Greenkeeper badge

Features

CRUD address book that use browsers localStorage for persistent storage.

Main libs used

Known bug 2016-05-24

Affects IE11

Inputs does not work in IE11, ng2-material bug, fixed in next release

Bug fixed 2016-05-31, inputs now works correct also in IE11

TODO

test coverage

documentation

clean up misc starter left overs

Dependencies

Once you have those, you should install these globals with npm install --global:

Installing

Running the app

After you have installed all dependencies you can now run the app. Run npm run server to start a local server using webpack-dev-server which will watch, build (in-memory), and reload for you. The port will be displayed to you as http://0.0.0.0:3000 (or if you prefer IPv6, if you're using express server, then it's http://[::1]:3000/).

server

# development
npm run server
# production
npm run build:prod
npm run server:prod

build files

# development
npm run build:dev
# production
npm run build:prod

hot module replacement

npm run server:dev:hmr

watch and build files

npm run watch

run tests

npm run test

watch and run our tests

npm run watch:test

run end-to-end tests

# make sure you have your server running in another terminal
npm run e2e

run webdriver (for end-to-end)

npm run webdriver:update
npm run webdriver:start

run Protractor's elementExplorer (for end-to-end)

npm run webdriver:start
# in another terminal
npm run e2e:live

Use latest TypeScript compiler

TypeScript 1.7.x includes everything you need. Make sure to upgrade, even if you installed TypeScript previously.

npm install --global typescript