Angular Universal running on AWS serverless
It uses serverless framework
npm install -g serverless
npm i
npm run dev (local dev server, use it when developing)
npm run dev:serverless (local serverless offline server, try it before deploy:dev)
npm run deploy:dev
npm run deploy:prod
https://github.com/enten/angular-universal
This project was generated with Angular CLI version 6.0.0.
1- Aws serverless
2- Api endpoint (/api/test)
3- Transfer State
This starter kit contains all the minimal tooling and configuration you need to kick off your next universal Angular 6 project.
It combines @angular/cli and udk to won't have to write specific code for development purposes only.
-
angular 6 as universal web application platform
-
module-map-ngfactory-loader 6 as server side rendering of lazy routes
-
angular/cli 6 as code scaffolder
-
webpack 4 as module bundler
-
node as server
-
express as request handler
-
udk-builder as architect builder
-
ng-udkc as extreme live development container to reload all the things!
- webpack/hot/poll to enable hmr on server side
- webpack-hot-middleware (dynamically mounted on server) and @angularclass/hmr to enable hmr on
-
Angular Transfer State so you don't call api endpoint twice
-
serverless as serverless framework
-
serverless-offline to run serverless locally
browser side * watchpack to restart dev container when a metafile changed
git clone https://github.com/beritsistemas/angular-universal my-project
cd my-project
npm install
npm start