Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/theideasaler/angular-prerender

This repo shows how to prerender Angular app into static HTML files.
https://github.com/theideasaler/angular-prerender

angular aws aws-s3 javascript prerender

Last synced: 21 days ago
JSON representation

This repo shows how to prerender Angular app into static HTML files.

Awesome Lists containing this project

README

        

# Angular Prerender

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 6.2.2.

## Development server

Run `npm run serve:prerender` to servre your static files locally. Navigate to `http://localhost:8082/`. The app will automatically loaded if you routes between pages.

## Build

Run `npm run build:prerender` to build the project. The build artifacts will be stored in the `dist/static` directory.

## Deployment

Copy files inside `dist/` folder to your AWS S3 bucket, and follow this tutorial [Prerender Angular](https://levelup.gitconnected.com/prerender-angular-and-deploy-it-as-a-static-website-on-aws-s3-to-make-it-42-times-faster-115fadcf8614) to configure your AWS S3, CloudFront and Router 53.