Skip to content

Python backend powered by FastAPI and MongoDB for seamless course info management. Rigorously tested with Pytest, and Containerized for effortless deployment across systems.

Notifications You must be signed in to change notification settings

MaxLopezSalgado/python_backend_system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Libraries used

 contextlib
 fastapi 
 pymongo 
 bson 
 os
 dotenv  
 bson 
 pytest

Endpoints

Adding the courses.json to MongoDB using the Python script

image

Courses Endpoint

The course's rating is calculated as an aggregated sum of its chapters, following the assignment document's guidelines. image

Single Course Overview Endpoint

image

Chapter Details Endpoint

image

POST Request Endpoint to Add Rating to a Chapter

image

Success

image

Running Tests to Validate All Endpoints

To run tests: pytest test_app.py image

Containerizing the Application

To containerize: docker build -t my_python_app . image

About

Python backend powered by FastAPI and MongoDB for seamless course info management. Rigorously tested with Pytest, and Containerized for effortless deployment across systems.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published