Skip to content

In this article, you'll learn how to build a CRUD application with FastAPI, PyMongo, and a MongoDB database. You'll have a full-fledged REST API that can accept CRUD (Create, Read, Update, and Delete) requests from an API testing tool or a frontend application.

Notifications You must be signed in to change notification settings

wpcodevo/crud-app-pymongo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build a CRUD App with FastAPI and PyMongo

In this article, you'll learn how to build a CRUD application with FastAPI, PyMongo, and a MongoDB database. You'll have a full-fledged REST API that can accept CRUD (Create, Read, Update, and Delete) requests from an API testing tool or a frontend application.

Build a CRUD App with FastAPI and PyMongo

Topics Covered

  • Run the FastAPI CRUD App Locally
  • Run the Frontend App Locally
  • Setup FastAPI with PyMongo
    • Setup MongoDB With Docker
    • Install FastAPI and Start the HTTP Server
  • Designing the App
  • Connect the FastAPI App to MongoDB
  • Create the Request Validation Schemas
  • Create Database Serializers
  • Create the Path Operation Functions
    • Retrieve all Documents
    • Create a Document
    • Update a Document
    • Get a Document
    • Delete a Document
    • Complete Path Operation Functions
  • Register the Router in the FastAPI App

Read the entire article here: https://codevoweb.com/build-a-crud-app-with-fastapi-and-pymongo

About

In this article, you'll learn how to build a CRUD application with FastAPI, PyMongo, and a MongoDB database. You'll have a full-fledged REST API that can accept CRUD (Create, Read, Update, and Delete) requests from an API testing tool or a frontend application.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy