diff --git a/Python FastAPI.md b/Python FastAPI.md index 1283a9e..64888a2 100644 --- a/Python FastAPI.md +++ b/Python FastAPI.md @@ -40,3 +40,10 @@ def read_root(): ``` +## Using Environnement Variables + +For API authentication and database connection, basically anything that requires a "secret". We're gonna use environnement variables. + +For development, we can write everything in a .env file that will be added to the .gitignore. In production, the content of the .env file will be placed in a "secret" file, usually in /etc/app_name/secret, that will be loaded as an Environnement file by the systemd service file. + +## Using ORMAR as an ORM \ No newline at end of file