Skip to content

⚙️This is a simple project to learn the mongo concepts, using Fastapi and PyMongo. The project is a simple API to manage a list of costumers.

Notifications You must be signed in to change notification settings

Denilson-Semedo/fastapi_mongodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fastapi with MongoDB

A project to learn the mongo concepts. The project is a simple API to manage a list of costumers.

Enviromments

To create a new enviroment python3 -m venv env

To acivate the enviroment source env/bin/activate

How to run

To run the project, you need to have the python 3.8 installed. After that, you need to install the requirements with the command: pip install -r requirements.txt

To run the project, you need to run the command: uvicorn app:app --reload

The project will be running on the address: http://localhost:8000 by default.

Features

  • Create a new costumer
  • List all costumers
  • Get a costumer by id
  • Update a costumer
  • Delete a costumer

How to use

{
    "name": "John Doe",
    "email": "john@email.com",
    "phone": "123456789",
    "city": "New York",
    "country": "USA",
    "active": True,
    "costumer_type": "Premium"
} 
{
    "name": "John Doe",
    "email": "john@email.com",
    "phone": "123456789",
    "city": "New York",
    "country": "USA",
    "active": True,
    "costumer_type": "Premium"
} 

Requirements

  • Python 3.8
  • Fastapi
  • Uvicorn
  • PyMongo

About

⚙️This is a simple project to learn the mongo concepts, using Fastapi and PyMongo. The project is a simple API to manage a list of costumers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages