The default Angular CLI project, modified to support Angular Universal prerendering via AWS Lambda (using the Serverless platform).
- Clone the repo and run
yarnto install dependencies. - Build the angular projects for server and browser using
npm run build:angular - Build the lambda code with
npm run build:server - After building, simulate the lambda endpoint locally by running
npm run start - To deploy to AWS, set up your credentials with serverless, then use
npm run deploy.
Lukas Marx's blog post does a great job explaining what's required to set up an Angular Universal project.