Skip to content

Latest commit

 

History

History
27 lines (24 loc) · 1.24 KB

README.md

File metadata and controls

27 lines (24 loc) · 1.24 KB

ScreenshotMaker

screenshotmaker

Description

ScreenshotMaker is a web app based on Laravel, provides possibility to make screenshot of any site using Selenium and php-webdriver by Facebook

Setup Application

  • run composer install
  • create .env file from .env.example
  • run php artisan key:generate
  • run php artisan storage:link
  • make sure you have permission to write into storage/app/public
  • Application use Selenium Web Driver. docker image: https://hub.docker.com/r/selenium/standalone-chrome/
  • set Selenium Host in .env file with SELENIUM_HOST=127.0.0.1:4444/wd/hub

Endpoints

Selenium Setup

To setup Selenium Server we need Docker. to start container:
sudo docker run -d -p 4444:4444 -v /dev/shm:/dev/shm --restart=always selenium/standalone-chrome parameters: -d as daemon, —-restart=always restart on any failure, -p 4444:4444 open port 4444 now we can set in .env file with SELENIUM_HOST=SELENIUM_HOST=127.0.0.1:4444/wd/hub