Skip to content
/ PACCD Public

PACCD is a simple Python FastAPI application which will deploy its code to Azure Container App, Azure Cosmos DB and captures metrics and logs in App insights

License

Notifications You must be signed in to change notification settings

Fariz-fx/PACCD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PACCD ToDO Application

PACCD is a simple Python FastAPI application which will deploy its docker image to Azure Container App, Azure Cosmos DB and captures metrics and logs in App insights

This application creates a very simple three-tiered ToDo web app backend using Cosmos DB as the database and FastAPI as the python web framework to expose API endpoints for performing CRUD operations and to monitor we will make use application insight and Grafana

Link

Application Link:

Grafana Link:

Azure Repo Link:

Workflow

  • It have 2 environments Prod and test.
  • Developer can clone this repo and use vs.code to perform development activity
  • Once they are happy with the development raise pull request and once approved, they can check deployment of docker image in test environment Note: During PR, 2 github actions will run to check vulnerabilities and syntax error
  • For Prod Deployment, it will automatically go for admin approval, once approved resources will be pushed to prod

Features

This project demonstrates the use of the Cosmos DB python SDK with FastAPI . It covers the following aspects:

  • Create Azure Cosmos DB Resource in Azure Portal
  • Setup the dev environment and install requisite client-side libraries
  • Store Cosmos DB Resource connection credentials on our server
  • Connect to Cosmos DB Resource through python client
  • Define ToDoItem data model
  • Create the required database and container to store ToDo Items
  • Setup for API implementation
  • Write functions to interact with the database
  • Expose the API endpoints with FastAPI
  • Test the endpoints
  • Configure Dashboard
  • Configure alert

Source:

This project is inspired from

Project Files:

Resources

About

PACCD is a simple Python FastAPI application which will deploy its code to Azure Container App, Azure Cosmos DB and captures metrics and logs in App insights

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages