All Projects → webmaxru → pwa-workshop-angular

webmaxru / pwa-workshop-angular

Licence: other
Demo App for Angular Mobile Toolkit workshop

Programming Languages

typescript
32286 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

A simple app for the Angular Mobile Toolkit Workshop

Angular Mobile Toolkit Workshop

Slidedeck

Prerequisites

  1. Latest stable versions of node, npm installed.
  2. Having yarn installed is strongly recommended.
  3. Any simple web server od browser extension. Recommended: Web Server for Chrome

Install

  1. Clone the repo
yarn

or

npm install

Install/update Angular CLI

npm uninstall -g angular-cli
npm uninstall -g @angular/cli
npm cache clean
npm install -g @angular/cli@latest

Check the version:

npm list @angular/cli version -g

The output should be 1.0.0-rc.0

Checking the app

  1. In the terminal
ng serve
  1. Open http://localhost:4200/. You should see the page with PWA Workshop header. There will be some warnings about <template> element in the console. Ignore them.
  2. "Ctrl-C" to stop the app.

Creating a production build and serving it via external web server

ng build --prod

The dist folder should be created. Start Web Server for Chrome extension and point to this folder using "Choose folder" button. 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 PWA Workshop header.

We are ready to start the workshop! Follow the trainer instructions.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].