Skip to content

Tharushan/Pagespeed-Insight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pagespeed-Insight

Using Docker

First you will need to have docker installed:

Install Docker and Docker-compose:

curl -sSL https://get.docker.com/ | sh
curl -L "https://github.com/docker/compose/releases/download/1.25.0/docker-compose-$(uname -s)-$(uname -m)" -o docker-compose
chmod +x docker-compose
sudo mv docker-compose /usr/local/bin/docker-compose

Use docker and docker-compose without sudo:

sudo usermod -aG docker $USER

You will need to logout and login back to apply permissions on user

Start Project

First you will have to edit back-insight/.env file with google api key (or add a line in docker-compose.yml in back-insight env variables with GOOGLE_API_KEY="key")

Then build and run docker containers using this command

docker-compose build && docker-compose up -d

Now you can create tables using :

docker-compose exec back-insight npm run migrate

Then wait some minutes ( the cron is running each minute to fetch data on pagespeed Insight )

The front is accessible on http://localhost:3000/

Architecture

Architecture

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published