pelid / 29_phones

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Microservice for Search Index of Phone Numbers

What is it

Microservice listens remote database for new rows which are orders for call center. It writes rows into local database and adds new column for standartized phone number.

What in use

  • sqlaclchemy
  • alembic

How to

1. Install requirements

$ pip install -r requirements

2. Create backup from remote db and restore it on local with pgAdmin4

3. Create environment variable for database url

$ export DATABASE_URL=your_url

4. Create db migration with alembic

$ alembic update head

5. Run script

$ python load_orders_to_local_db.py

Project Goals

The code is written for educational purposes. Training course for web-developers - DEVMAN.org

About


Languages

Language:Python 89.0%Language:Mako 11.0%