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

lexhouk/goit-pyweb-hw-11

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.