Skip to content

arvindr21/prerender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prerender POC

A repo to validate usage of Prerender with various clientside driven application

Inspired by Setup SEO Friendly Angular Apps with Prerender.io. Great article to start reading about Prerender.io & how to integrate with it/

Client Apps

Usage

  • To test the setup, make sure you have depencies listed in each folder installed, follow the readme in each folder for this.
  • Once dependencies are installed, first start the prerender server app from prerender-server folder.
  • Finally open another terminal/prompt and launch the app of your choice.

ng-1x-app

Launch

$ node server.js

Navigate to http://localhost:3001 & the typical NG 1.x app would be rendered. And navigate to http://localhost:3001/?escaped_fragment= to view the prerendered page.

ng-6x-app

Launch

$ ng build

Build gets created at dist folder after ng build. This folder will be used as static resource for the next server we will start

$ node server.js

A new server fires up at port 3002. Navigate to http://localhost:3002 & the typical NG 6.x app would be rendered. And navigate to http://localhost:3001/?escaped_fragment= to view the prerendered page.

License

Copyright (c) 2018 Arvind Ravulavaru

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •