Git Product home page Git Product logo

prerender-app's Introduction

prerender-app

Basic app to test dynamic rendering using prerender.io's self-hosted prerender service.

Prerequisites

The following items are optional but not required.

  1. NodeJS
    • node version 10.16.3
    • npm version 6.9.0
  2. Windows OS 64-bit
  3. (Optional) Custom prerender.io service running on localhost
    • this is required if you are to run the app on localhost
    • accessible on localhost development:
      http://localhost:3000
    • accessible on live production:
      https://prerenderservice.herokuapp.com (or your own hosted prerender service url)

Usage

  1. Clone this repository.
    git clone https://github.com/weaponsforge/prerender-app.git

  2. Install dependencies.
    npm install

  3. Create a .env file from the .env.example file. Update the variables as needed:

    • NODE_ENV:
      • set to development if you are to run the project on localhost AND are using a localhost prerender service (see #4).
      • set to production if you'd like to use a live prerender service. PRERENDER_SERVICE_URL must be set in the .env variable if you are to use this option
    • PRERENDER_SERVICE_URL: url of the live prerender service that you'd like to use.
      • defaults to ttps://prerenderservice.herokuapp.com
      • you can use your own hosted prerender service by following the set-up instructions on this app's accompanying prerender service.
  4. (Optional) Use a prerender service from localhost.

    • Be sure to clone and install the accompanying prerender service on localhost and follow the environment variables instructions setup for using it from #3.
  5. Load the prerender-app project:
    http://localhost:3001

Referencess

[1] - custom prerender service
[2] - trello notes

@weaponsforge
20200405

prerender-app's People

Contributors

weaponsforge avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.