Skip to content

Commit

Permalink
Merge branch 'master' of github.com:experius/SeoSnap
Browse files Browse the repository at this point in the history
  • Loading branch information
Egor Dmitriev committed Jan 31, 2020
2 parents 3f0b2bf + fbc9e49 commit 214e70d
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
![logo](https://github.com/experius/SeoSnap/raw/master/assets/logo.png)

#SeoSnap Beta

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

Expand All @@ -13,6 +15,12 @@ git clone --recursive [email protected]:experius/SeoSnap.git
```
docker-compose up --build -d && docker-compose down
```
Wait 5 seconds and then build again
```
docker-compose up --build
```

Everything should run now

# Usage
* Dashboard: http://127.0.0.1:8080/ (default login: snaptron/Sn@ptron1337)
Expand All @@ -28,4 +36,25 @@ Cache directory ./cache
Make sure you have created a website via dashboard http://127.0.0.1:8080/seosnap/website/add/
```
docker-compose run cachewarmer <website id>
```
```

## Nginx

Check the nginx.conf in the example folder


# How it works

![diagram](https://github.com/experius/SeoSnap/raw/master/assets/diagram.png)

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

### Crawler
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.

### 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.

# Build with
![diagram](https://github.com/experius/SeoSnap/raw/master/assets/software.png)
Binary file added assets/diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/software.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 214e70d

Please sign in to comment.