Skip to content

Pythonusus/page_analyzer

Repository files navigation

Page analyzer logo

Page analyzer

Hexlet tests and maintainability status:

Actions Status Maintainability

🔗 Link to web-service

Try Page analyzer by this link

📝 Table of Contents

🧐 About

Page Analyzer is a simple Flask web-application that checks sites for SEO suitability

🏁 Getting Started

Prerequisites

  1. python >= 3.10
  2. flask >= 3.0.3
  3. gunicorn >= 22.0.0
  4. python-dotenv >= 1.0.1
  5. psycopg2-binary >= 2.9.9
  6. validators >= 0.33.0
  7. beautifulsoup4 >= 4.12.3
  8. requests >= 2.32.3

Installing with Docker

  1. Clone GitHub repo:
git clone https://github.com/Pythonusus/page_analyzer.git
  1. Install Docker using official guide

  2. Provide all neccessary environmental variables. You can see example of .env file in .env.example file.

  3. Build and run the Docker container:

make docker-build-prod
make docker-start-prod

The application will be available at http://localhost:8000

Installing without Docker

  1. Clone GitHub repo:
git clone https://github.com/Pythonusus/python-project-83
  1. Provide all neccessary environmental variables. You can see example of .env file in .env.example file.

  2. Install Poetry and config it:

sudo apt-get update && \
     apt-get install -y curl build-essential libpq-dev && \
     rm -rf /var/lib/apt/lists/* && \
     curl -sSL https://install.python-poetry.org | python3 - && \
     poetry config virtualenvs.in-project true
  1. Install all neccessary dependencies using Poetry and connect to DB via pysql utility:
make build
  1. Start Page analyzer locally:
make start

⛏️ Built Using

  • Poetry - Python packaging and dependency management tool
  • PostgreSQL - Powerful, open source object-relational database system
  • Flask - Lightweight WSGI web application framework
  • Gunicorn - Python WSGI HTTP Server for UNIX
  • Docker - Open platform for building, shipping, and running applications

✍️ Authors

@Pythonusus

Logo

Made with Ideogram AI

Stored at imgur.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published