Public Repository

Last pushed: 2 months ago
Short Description
Angular4 & React Server-Side rendering with Go/PhantomJS
Full Description

Currently being used in production at https://trumail.io

kathisto

kathisto (greek for render) is a lightweight docker base image that performs full server-side rendering using PhantomJS to serve cached, pre-rendered pages of your Angular2/4/React web-apps to search engine bots/crawlers. It also supports auto-recaching of all pages at hour intervals.

This project was developed after I came to the realization that bots and crawlers we're not indexing anything other than the head and un-rendered body of my Angular applications.

Your Dockerfile

FROM entrik/kathisto:latest
ADD dist/ /dist/

Deploy it!

docker build myapp
docker run --name myapp_container -p 80:80 myapp
docker build myapp
docker run --name myapp_container -p 80:80 -p 443:443 -e CERT_FILE=/certs/domain.crt -e KEY_FILE=/certs/domain.key myapp

Future Plans

Due to the fact that PhantomJS seems to take slightly longer than headless chrome to render full pages, I'd like to implement headless chrome at some point.

Credit

License

Copyright 2017 Entrik, LLC

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Docker Pull Command
Owner
entrik

Comments (0)