Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Latest commit

 

History

History
22 lines (17 loc) · 622 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 622 Bytes

Contacts API

Deployment

$ git clone https://github.com/lexhouk/goit-pyweb-hw-11.git
$ cd goit-pyweb-hw-11
$ poetry install
$ echo 'your database user password' > .secret
$ docker run --name lexhouk-hw-11 -p 5432:5432 -e "POSTGRES_PASSWORD=$(cat .secret)" -d postgres
$ alembic upgrade head

Usage

$ docker run --name lexhouk-hw-11 -p 5432:5432 -e "POSTGRES_PASSWORD=$(cat .secret)" -d postgres
$ poetry shell
$ python main.py

All available endoints can be viewed in Swagger UI or ReDoc, and can only be tested in the former.