- Latest stable versions of
node,npminstalled. - Having
yarninstalled is strongly recommended. - Any simple web server od browser extension. Recommended:
- http-server. This is preferred option.
- Web Server for Chrome. Use this as a fallback option.
- Clone the repo
yarnor
npm installnpm uninstall -g angular-cli
npm uninstall -g @angular/cli
npm cache clean
npm install -g @angular/cli@latestCheck the version:
npm list @angular/cli version -gThe output should be at least 1.4.9
- In the terminal
ng serve- Open http://localhost:4200/. You should see the page with
PWAtterheader. - "Ctrl-C" to stop the app.
ng build --prodThe dist folder should be created.
- If you use
http-server: Runhttp-server dist -p 8080and openhttp://127.0.0.1:8080in your browser. - If you use
Web Server for Chrome: StartWeb Server for Chromeextension and point to this folder using "Choose folder" button OR. Open the link you see in "Web Server URL(s)" section (make sure the "Automatically show index.html" option is on).
You should see the page with PWAtter header.