This is part of the @ng-toolkit project. Check main page for more
This is boilerplate for (PWA) progressive web app with Angular Universal (serverside rendering). It is prepared to be easily deployed on serverless environment (Google Cloud Functions & AWS Lambda supported).
@ng-toolkit is being sponsored by the following tool; please help to support us by taking a look and signing up to a free trial
Angular Universal PWA on AWS Lambda + API Gateway
- What's inside
- Getting started
- Deployment
- To do
- Question, Problem, Feature Request
- Support @ng-toolkit/init
- PWA - content is cached and available offline, it can be also installed as native app on Android devices and Google Chrome
- AMP - Accelerated Mobile Pages - super fast initial load (down to ~650ms)
- Push notifications:
- Vapid webpush (Chrome and Firefox) - Using aws-sns-webpush as back-end
- Safari push - Using aws-sns-webpush as back-end
- Server-side rendering with Angular Universal
- TransferState
- Lazy loading modules
- External modules (You can split your application into multiple projects and lazy-load them, read more here) [TBD after CLI merge - #150]
- Angular Material
- Unit tests
- Firebug Lite (great solution for development on touch-screen devices, ie: tablets)
- Angular 6.x
- Webpack
- Serverless framework
Whatch on Youtube:
npm install -g @ng-toolkit/initCreate project:
ng new --collection @ng-toolkit/init myApp
cd myApp
npm start--provider- What serverless provider you want to use? (aws|gcloud|firebase) - defaultaws--firebaseProject- projectID, used when you choosefirebasein above param--gaTrackingCode- Provide your Google Analytics tracking code, to enable GA (ie--gaTrackingCode UA-123456)--firebug- Decide if you want to download firebug-lite (true|false) - defaultfalse
git clone https://github.com/maciejtreder/ng-toolkit.git
cd ng-toolkit/application
npm install
npm start- Development mode (autoreload only):
npm start - Development mode (autoreload + unit tests):
npm run build:dev - Development mode (autoreload + firebug lite):
npm run build:firebug - Development mode (autoreload + firebug lite + unit tests):
npm run build:dev:firebug - Unit tests:
npm run test
npm run build:prod
npm run servernpm run build:serverless:deploy
npm run build:prod:deploy
Check out Serverless library documentation Read more about link customization in AWS API Gateway & Lambda
- prerender app for 'no-backend' hosting
- microservices support - make replacement eligible external module without recompiling whole app
- ng-http-sw-proxy (all requests done offline, are synced when app comes back online) - not working since Angular 5.x (more info can be found in this issue)
- e2e tests
- load static content from S3 (JavaScript, styles, images):
- when serving all static content from S3 load speed up is not really visible (increase is around ~0,2 sec),
- problems with CORS on Chrome,
- problems with compression of some files (.js files are not compressed in some cases)
- needs a lot of manual setup (cloudfront setup etc.)
Feel free to create issue with your feature request
You can support development of this project via
If you want, you can be listed on the List of donors on the demo page.
Thank you to all our backers! 🙏 [Become a backer]
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]
- Checkout my home page and find out more about me


