FastAPI backend that does CRUD operation on mongodb and stores user's username name phone number description fields
Clone the project
git clone https://github.com/shadanxd/oneassure.git
Go to the project directory
cd oneassure
Install dependencies
pip install fastapi
pip install pymongo
pip install uvicorn
pip install fastapi-security
pip install pydantic
pip install python-jose
Start the server
uvicorn main:app --reload
localhost:8000/docs
PUT /signup/
{
"username": "string",
"name": "string",
"phone": 0,
"password": "string",
"Description": "string"
}
POST /login
POST /login/update/phone/{username}/{number}
POST /login/update/name/{username}/{newname}
GET /login/getDetails/{username}