Python-REST-API--FastAPI--SQLAlchemy--PostgreSQL-/README.md at main · spix26/Python-REST-API--FastAPI--SQLAlchemy--PostgreSQL- · GitHub
Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 694 Bytes

File metadata and controls

40 lines (25 loc) · 694 Bytes

Python REST API (FastAPI, SQLAlchemy, PostgreSQL)

Restore postgresql database from /database folder

Install dependencies:
pip install -r requirements.txt

Setting database connection on main.py

API_HOST = 'localhost'
API_DATABASE = 'wo'
API_DBUSER = 'postgres'
API_DBPASSWORD = 'awizindo'
API_DBPORT = '5432'

Running:
uvicorn main:app --reload

Running using custom port:
uvicorn --port 8000 --host 127.0.0.1 main:app --reload

--reload to make server automatically reload if any update.

Auto Generate Documentation and Web Testing: http://127.0.0.1:8000/docs



Regards
Ari Abimanyu