Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grvpanchal/prerender-boilerplate
An Express boilerplate to start SEO serivces with Prerender.io for SPA and PWA
https://github.com/grvpanchal/prerender-boilerplate
Last synced: 21 days ago
JSON representation
An Express boilerplate to start SEO serivces with Prerender.io for SPA and PWA
- Host: GitHub
- URL: https://github.com/grvpanchal/prerender-boilerplate
- Owner: grvpanchal
- Created: 2019-10-31T11:16:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T11:34:21.000Z (about 2 years ago)
- Last Synced: 2024-11-12T04:35:10.860Z (3 months ago)
- Language: JavaScript
- Size: 140 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Prerender Boilerplate
An Express boilerplate to start SEO serivces with Prerender.io for SPA and PWA.
In this setup, the prerender service engine works differently from our site i.e based on express. Normally, the express fetches site from public folder. On the event of a BOT requesting a page from the express server, the `prerender-node` modules reverts the request to prerender engine running on `http://localhost:3000/render?url=`
## Installation
Install node packages
```bash
npm install
```Start the server
```bash
npm start
```- Open the browser and Go to http://localhost:4000/.
- Open developer Tools and in More tools, open Network Conditions.
- Uncheck 'Select Automaticallly' for User Agent and select 'Googlebot' from the dropdown.
- Refresh the page and Check, the id `myName` that was generated via JavaScript is static and the JavaScript bits are removed automatically.