Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wkylin/ng-pwa
angular pwa...
https://github.com/wkylin/ng-pwa
angular angular-cli http-server ngrok pwa typescript
Last synced: 18 days ago
JSON representation
angular pwa...
- Host: GitHub
- URL: https://github.com/wkylin/ng-pwa
- Owner: wkylin
- Created: 2018-03-26T12:19:53.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-11T12:02:30.000Z (almost 7 years ago)
- Last Synced: 2024-11-22T16:48:52.985Z (3 months ago)
- Topics: angular, angular-cli, http-server, ngrok, pwa, typescript
- Language: TypeScript
- Homepage: https://wkylin.github.io/ng-pwa/
- Size: 595 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NgPwa
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.7.3.
## 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.
## Code scaffolding
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|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.
## Running unit tests
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
## Running end-to-end tests
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
## Further help
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
## Http-server
## rm mkdir cp
1. npm install rimraf cpr make-dir-cli --save-dev
2. npm install --global copy
3. npm install --global make-dir-cli
4. npm install scripty --save-dev
5. npm install --global opn-cli
6. npm install onchange --save-dev
7. npm install imagemin-cli --save-dev
8. npm install -g nodemon
9. npm install pm2 -g
10. npm install express morgan --save-dev+ "release:patch": "npm version patch && git push && git push --tags",
+ "release:minor": "npm version minor && git push && git push --tags",
+ "release:major": "npm version major && git push && git push --tags",
patch 是更新补丁版本,minor 是更新小版本,major 是更新大版本## Cygwin
1. 安装Cygwin https://cygwin.com/
2. C:\cygwin64\home\UserName
3. openssl genrsa -out key.pem 1024
4. openssl req -new -key key.pem -out cert.csr
5. openssl x509 -req -in cert.csr -signkey key.pem -out cert.pem
6. http-server -S -C cert.pem -K key.pem## Ngrok
1. "build": "ng build --prod",
2. "http:server": "cd dist && http-server -p 9088",
3. "ngr": "ngrok http 9088",## PWA demo
[https://wkylin.github.io/ng-pwa/](https://wkylin.github.io/ng-pwa/)