mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-08-26 16:40:40 +03:00
links
This commit is contained in:
parent
70e2a070e3
commit
6a8f727faf
37
README.md
37
README.md
@ -21,15 +21,22 @@
|
|||||||
<li>
|
<li>
|
||||||
<a href="#getting-started">Getting Started</a>
|
<a href="#getting-started">Getting Started</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#prerequisites">Prerequisites</a></li>
|
<li><a href="#make-will-help-you">Make will help you</a></li>
|
||||||
<li><a href="#installation">Installation</a></li>
|
<li><a href="#how-to-feed-database">How to feed database</a></li>
|
||||||
|
<li><a href="#rainbow-logs-with-rich">Rainbow logs with rich</a></li>
|
||||||
|
<li><a href="#setup-user-auth">Setup user auth</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#usage">Usage</a></li>
|
|
||||||
<li><a href="#roadmap">Roadmap</a></li>
|
[//]: # ( <li><a href="#usage">Usage</a></li>)
|
||||||
<li><a href="#contributing">Contributing</a></li>
|
|
||||||
<li><a href="#license">License</a></li>
|
[//]: # ( <li><a href="#roadmap">Roadmap</a></li>)
|
||||||
<li><a href="#contact">Contact</a></li>
|
|
||||||
|
[//]: # ( <li><a href="#contributing">Contributing</a></li>)
|
||||||
|
|
||||||
|
[//]: # ( <li><a href="#license">License</a></li>)
|
||||||
|
|
||||||
|
[//]: # ( <li><a href="#contact">Contact</a></li>)
|
||||||
<li><a href="#acknowledgments">Acknowledgments</a></li>
|
<li><a href="#acknowledgments">Acknowledgments</a></li>
|
||||||
</ol>
|
</ol>
|
||||||
</details>
|
</details>
|
||||||
@ -63,7 +70,9 @@ as the fifth official annual Python Developers Survey, conducted as a collaborat
|
|||||||
|
|
||||||
<p align="right">(<a href="#readme-top">back to top</a>)</p>
|
<p align="right">(<a href="#readme-top">back to top</a>)</p>
|
||||||
|
|
||||||
### How to Setup
|
## Getting Started
|
||||||
|
|
||||||
|
### Make will help you
|
||||||
To build , run and test and more ... use magic of make help to play with this project.
|
To build , run and test and more ... use magic of make help to play with this project.
|
||||||
```shell
|
```shell
|
||||||
make help
|
make help
|
||||||
@ -86,6 +95,7 @@ test Run project tests
|
|||||||
up Run project with compose
|
up Run project with compose
|
||||||
```
|
```
|
||||||
|
|
||||||
|
<p align="right">(<a href="#readme-top">back to top</a>)</p>
|
||||||
|
|
||||||
### How to feed database
|
### How to feed database
|
||||||
|
|
||||||
@ -95,6 +105,8 @@ Data set is coming form https://github.com/catherinedevlin/opensourceshakespeare
|
|||||||
Next models were generated with https://github.com/agronholm/sqlacodegen
|
Next models were generated with https://github.com/agronholm/sqlacodegen
|
||||||
And after some tweaking I got desired result
|
And after some tweaking I got desired result
|
||||||
|
|
||||||
|
<p align="right">(<a href="#readme-top">back to top</a>)</p>
|
||||||
|
|
||||||
### Rainbow logs with rich :rainbow:
|
### Rainbow logs with rich :rainbow:
|
||||||
|
|
||||||
To deliver better user(developer) experience when watching logs with tons of information
|
To deliver better user(developer) experience when watching logs with tons of information
|
||||||
@ -116,9 +128,12 @@ Below steps were done to integrate [rich](https://github.com/Textualize/rich) in
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
### User authentication with JWT and Redis as token storage :lock: :key:
|
<p align="right">(<a href="#readme-top">back to top</a>)</p>
|
||||||
|
|
||||||
#### Generate Fernet key for storing password in db
|
### Setup User Auth :lock: :key:
|
||||||
|
|
||||||
|
Setup user authentication with JWT and Redis as token storage
|
||||||
|
Generate Fernet key for storing password in db
|
||||||
```python
|
```python
|
||||||
In [1]: from cryptography.fernet import Fernet
|
In [1]: from cryptography.fernet import Fernet
|
||||||
|
|
||||||
@ -129,7 +144,7 @@ Out[2]: b'Ms1HSn513x0_4WWFBQ3hYPDGAHpKH_pIseC5WwqyO7M='
|
|||||||
Save the key in .secrets as FERNET_KEY
|
Save the key in .secrets as FERNET_KEY
|
||||||
|
|
||||||
|
|
||||||
## Local development with poetry
|
### Local development with poetry
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
pyenv install 3.11 && pyenv local 3.11
|
pyenv install 3.11 && pyenv local 3.11
|
||||||
|
Loading…
x
Reference in New Issue
Block a user