Rest API using FastAPI
I recently came across FastAPI, a really cool fast (high-performance) modern web framework for building APIs with Python 3.7+ based on standard Python type hints, the coolest part of FastAPI is the automatic interactive API documentation.
This project is the FastAPI version of the flask one i made here, it's a Social Media style RestAPI, where a user can register, authenticate, post and see all other posts.
fastapi_project/
| app/
| __init__.py
| main.py
| dependencies.py
| security.py
| utils.py
|
| routers/
| __init__.py
| posts.py
| users.py
| no_oaauth.py
|
| db/
| __init__.py
| crud.py
| database.py
| models.py
| schemas.py
|
| requirements.txt
| db.db
| run.py
|
1. clone the project & cd into it
$ git clone https://github.com/fulanii/flask-auth-project.git
$ cd fastapi-project
2. install the requirements
$ pip install -r requirements.txt
3. finally run and check out link: http://127.0.0.1:8000/docs
$ uvicorn run:app --reload