Skip to content

fulanii/fastapi-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Example of the auto docs: Docs Example

Project details

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.

Project Structure

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
|

Project Demo

Demo

Run locally

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages