Skip to content

A todo app backend using fastapi and Mongodb integrated with Kafka and Redis

Notifications You must be signed in to change notification settings

taapasX28/fastapi-mongodb-todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI MongoDB Todo App

Install Dependencies

  1. fastAPI
  2. uvicorn
  3. pymongo
  4. kafka
  5. redis
$ pip install fastapi uvicorn pymongo pymongo[srv]

To Launch:

Use uvicorn main:app to launch the app backend.

Directory tree:

├── config
│   └── database.py
├── models
│   └── todos_model.py
├── routes
│   └── todos_route.py
├── schemas
│   └── todos_schema.py
├── README.md
└──main.py
  • Config contains the database configration for linking to mongodb database. Modify and to link your db.
  • model contains the the database structure.
  • routes defines the ways to interact with the db using fastapi. Comments are added to explain the functionalty of each route
  • To test the app use http://127.0.0.1:8000/docs to use requests with pyapi

About

A todo app backend using fastapi and Mongodb integrated with Kafka and Redis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages