Skip to content

Анализатор страниц – это полноценное приложение на базе фреймворка Flask. Здесь отрабатываются базовые принципы построения современных сайтов на MVC-архитектуре: работа с роутингом, обработчиками запросов и шаблонизатором, взаимодействие с базой данных.

Notifications You must be signed in to change notification settings

KAnanev/Page-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hexlet tests, linter status and CI :

Actions Status Page Analyzer CI Maintainability

Getting Started

Clone the current repository via command:

git clone https://github.com/GregTMJ/python-project-83.git


Requirements

  • python >= 3.8
  • Poetry >= 1.14

Required packages

  • Flask ^2.2.2
  • Python-dotenv ^0.21
  • to avoid psycopg problems with different OS, install psycopg2-binary ^2.9.4
  • Every other packages are shown inside pyproject.toml

Check your pip version with the following command:

python -m pip --version

Make sure that pip is always up-to-date. If not, use the following:

python -m pip install --upgrade pip

Next install poetry on your OS. (the link is below)

Poetry installation

don't forget to init poetry packages with command poetry init

We will be also working with postgreSQL, so make sure that you have installed it on your OS


Makefile

For every project should be configured a Makefile to initiate the project without requiring manual commands

Current project starts after typing make setup

Inside our make setup we have 3 commands hidden:

  • make install, which makes poetry install packages from pyproject.toml
  • make lock, which locks poetry packages inside poetry.lock

After configuration, you should use make dev to start your flask app

This app is made to analyze certain URLs


Make sure than everything works, if you have something to add, remove or update, keep in touch "[email protected]"

About

Анализатор страниц – это полноценное приложение на базе фреймворка Flask. Здесь отрабатываются базовые принципы построения современных сайтов на MVC-архитектуре: работа с роутингом, обработчиками запросов и шаблонизатором, взаимодействие с базой данных.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published