Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying Universal Angular on Google Cloud Function or AWS Lambda

While experimenting with Angular 2, I happened to see Angular Universal. It's Server-side Rendering for Angular 2 apps same like we have in ReactJs. There is also a getting started guide with one code snippet here.

I am trying to understand if this is something we can deploy in serverless environment like Google Cloud Function or AWS Lambda. Docs of both services indicates that nodejs is supported. I am very new to both Angular2 & serverless hosting pattern.

like image 783
esafwan Avatar asked Oct 27 '16 10:10

esafwan


1 Answers

It is possible to deploy Angular app on serverless environment. I could say more, it is possible with server-side rendering (Angular Universal).

Check out this boiler-plate repo: https://github.com/maciejtreder/angular-universal-pwa

and live demo: https://www.angular-universal-pwa.maciejtreder.com

The app is deployed using Serverless framework: https://serverless.com

like image 104
Maciej Treder Avatar answered Sep 20 '22 14:09

Maciej Treder