Skip to content

zluuba/page-analyzer

Repository files navigation

Page Analyzer

Actions Status Project Check Maintainability

Page Analyzer is a site that analyses specified pages for SEO-suitability (like PageSpeed Insights).
It's hosted on my website. To run the app locally, check the description below.

Requirements

  • python, version 3.9 or higher
  • poetry, version 1.0.0 or higher

Installation

Clone this repo or download it with pip:

git clone https://github.com/zluuba/page-analyzer.git
pip install --user git+https://github.com/zluuba/page-analyzer.git

Install dependencies:

cd page-analyzer                    # don't forget cd to downloaded package dir
make install

Install Database (PostgreSQL)

Use these commands or download DB from official website:

brew install postgresql             # MacOS
sudo apt install postgresql         # Linux, Windows

Create database and set schema:

createdb mydb
psql mydb < database.sql

Create .env file

nano .env

And write down the following environment variables (paste your data):

DATABASE_URL = 'postgres://<username>:<password>@<localhost>:<port>/mydb'
SECRET_KEY = 'SecretKey'

Now package ready to go

Run WSGI HTTP server and follow the link you will see:

make start

Or run locally with flask:

make dev

Demos

Package setup

page-analyzer-install.mp4

Usage

page-analyzer-usage.mp4