Skip to content

AshtreeCC/ng-af-pwa-seed

Repository files navigation

Angular2 Firebase Progressive Web App seed

This project was generated with Angular CLI version 1.0.0-rc.2.

Installation

Download latest release

latest

See earlier releases

v0.1.0-alpha.0 (latest)

Or clone this repo

$ git clone git@github.com:AshtreeCC/ng-af-pwa-seed.git YOUR_PROJECT_NAME

Then change origin and clean the git repo. See more...

Clean the git repo (optional)

Open project folder $ cd YOUR_PROJECT NAME

Delete git history $ rm -rf .git

Initialise git again $ git init

And I reccommend git flow $ git flow init

Set remote origin and change upstream

Add your own as origin $ git remote add origin git@github.com:YOUR_NAME/YOUR_PROJECT_NAME (use set-url instead of add if you have not initialised a new repo)

Add this repo as upstream $ git remote add upstream https://github.com/AshtreeCC/ng-af-pwa-seed.git

Check your remotes $ git remote -v

Install node_modules

Copy the files and run yarn.

Usage

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

See more...

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive/pipe/service/class/module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

Precache (Not a part of NG-CLI, yet)

Run npm run precache to use sw-precache to create a service worker and store assets. Check /swconfig.json for files to cache.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor. Before running the tests make sure you are serving the app via ng serve.

Test on a virtual live server (Also, not a part of NG-CLI)

Run npm run live to start a live server on http://localhost:8000.

Deployment

//@TODO

Firebase App

//@TODO

@TODO

Github Pages

//@TODO

Docs

//@TODO

Github Wiki

//@TODO

@TODO

//@TODO

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.