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/
- 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.
Launch
$ node server.jsNavigate 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.
Launch
$ ng buildBuild 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.jsA 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.
Copyright (c) 2018 Arvind Ravulavaru