vfedotovs / sslv_web_scraper

ss.lv web scraping app helps automate information scraping and filtering from classifieds and emails results and stores scraped data in database
GNU General Public License v3.0
5 stars 3 forks source link

DOCS: Improve Makefile setup step #242

Closed vfedotovs closed 9 months ago

vfedotovs commented 9 months ago

This proposal should help catch outdated DB backup file import

Setup before start development or local deploy

PG_CONTAINER_NAME := docker ps | grep db-1 | awk '{print $$NF }' +S3_BACKUPBUCKET := `env | grep S3`

.DEFAULT_GOAL := help @@ -11,10 +12,12 @@ help: ## 💬 This help message all: setup build up ## runs setup, build and up targets

setup: ## gets database.ini and .env.prod and dowloads last DB bacukp file

-test: # Runs pytests locally +test: ## Runs pytests locally pytest -v

-test_cov: # Runs pytest coverage report across project +test_cov: ## Runs pytest coverage report across project pytest --cov=.