Files
fastapi-users/docs/configuration/full_example.md
Paolo Dina 579313f887 Ormar backend support (#470)
* Add db adapter for ormar (wip)

* finish ormar support enough to pass tests

* remove idea folder

* update ormar version in tool.flit.metadata.requires-extra

* Add documentation about ormar

* Apply isort and black formatting

* Restore python 3.7 in Pipfile

* Update build.yml

* Add missing test for ormar update

* changes after review

Co-authored-by: Paolo Dina <paolo.dina@codingmoth.com>
Co-authored-by: collerek <collerek@gmail.com>
2021-02-07 09:34:40 +01:00

36 lines
596 B
Markdown

# Full example
Here is a full working example with JWT authentication to help get you started.
!!! warning
Notice that **SECRET** should be changed to a strong passphrase.
Insecure passwords may give attackers full access to your database.
## SQLAlchemy
```py
{!./src/full_sqlalchemy.py!}
```
## MongoDB
```py
{!./src/full_mongodb.py!}
```
## Tortoise ORM
```py
{!./src/full_tortoise.py!}
```
## Ormar
```py
{!./src/full_ormar.py!}
```
## What now?
You're ready to go! Be sure to check the [Usage](../usage/routes.md) section to understand how yo work with **FastAPI Users**.