GithubHelp home page GithubHelp logo

wesleyalmd / seosnap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from experius/seosnap

0.0 1.0 0.0 178 KB

Server Side Rendering (SSR) for javascript applications

License: GNU General Public License v3.0

Shell 29.16% Python 40.14% Makefile 30.70%

seosnap's Introduction

logo

Setup for the whole seosnap stack including dashboard, cache server and cache warmer used for prerendering and full page caching PWA's.

Installation

For usage

  • Download and Extract release.zip from
  • Run ./install.sh or create a .env file manually
  • Start the Seosnap stack with docker-compose up

For development

# Clone
cd ~
git clone --recursive [email protected]:experius/SeoSnap.git seosnap
# Configure
make install
# Start server
make up

Usage

Logs directory ./logs

Cache directory ./cache

Run cache warmer

Make sure you have created a website via dashboard http://127.0.0.1:8080/seosnap/website/add/

make cachewarmer 
make warm A="cache <website id>"

Nginx

Check the nginx.conf in the example folder

Crontab

check the crontab.txt the example folder and use the cachewarmer.sh & healthchecks.sh

  • cachewarmer - create your own cachewarmer.sh and update the healthchecks url and the website ids
  • healthchecks - Just replace the https://hc-ping.com/xxxx with your ping URL & change https://galaxy.experius.nl/ to your PWA homepage
  • backups - there is an example cron which will make a backup of the cache files
  • docker volumes cleanup - as you can see in the cachewarmer.sh the rendertron container will be restarted for performance so we need to clean that up

How it works

diagram

In the dashboard you add the website url along with the website sitemap that you want to make 'SeoSnaps' off.

When the crawler is started it connects with the dashboard api. It uses scrapy to crawl the sitemap. The scrapy results are send to the administration/dashboard. Scrapy requests are send to the cache server. In a similar way that you would do a request to rendertron.

DEPRECATED - Cache Server

The cache server is a simple file caching server. If a file exist with the content of the page it serves the html from the file. If not, it renders the requested url with rendertron and saves the html output in a file. To refresh the cache the cache-warmer uses PUT requests instead of GET. This will force update from the cache file.

Rendertron + Cache is added and will replace the SeoSnap Cache Server

Recommended Rendertron config has been set in rendertron-config.json

Built with

diagram

seosnap's People

Contributors

egordm avatar lewisvoncken avatar stefan-experius avatar

Watchers

 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.