Skip to content

the-jet-seeker/trip-aggregator

Repository files navigation

The Jet Seeker [aggregator]

tests linters

Pre-requirements

Local setup

$ git clone git@github.com:the-jet-seeker/trip-aggregator.git
$ cd trip-aggregator
$ python3.12 -m venv venv
$ source venv/bin/activate
$ pip install -U poetry pip setuptools
$ poetry config virtualenvs.create false --local
$ poetry install

Host setup

$ add-apt-repository ppa:deadsnakes/ppa
$ apt-get update
$ apt install -y software-properties-common python3.12 python3.12-dev python3.12-venv python3-psycopg2 libpq-dev gcc postgresql-client-14
$ apt-get upgrade

$ curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10
$ curl -sS https://bootstrap.pypa.io/get-pip.py | python3.12

$ python3.10 -m pip install --upgrade setuptools
$ python3.12 -m pip install --upgrade setuptools

$ adduser tjs-stage-aggregator
$ adduser tjs-production-aggregator

Local run tests

$ pytest --cov=trip_aggregator

Local run linters

$ poetry run flake8 trip_aggregator/
$ poetry run mypy trip_aggregator/

Run scrapper

$ python -m trip_aggregator.run_task

Setting up periodically jobs

$ crontab etc/crontab.txt

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Languages