Simple Python API with Automation files for deploying the Azure Resources and packaging them into a container.
Explore »
Table of Contents
A Proof of concept consisting of a single web-application and a single database. The service will accept a POST request that will persist the timestamp of that event into a database.
To get a local copy up and running follow these simple example steps.
- Clone the repo
git clone https://github.com/tp-allen/simple_api.git
- Install PIP Modules
pip install -r requirements.txt
- Build Docker Image
docker build -t time_app .
- Run Docker Container
docker run -d --env-file ./env.list -p 5000:5000 time_app
The web API can use a curl command (curl -X POST http://app-timeapp-dev-001.azurewebsites.net/date)
The deployment of the App has been automated for use within Azure DevOps Pipelines.
The deployment of the resources has been terrafromed and can be created using the following tf commands.
terrafrom init
terraform plan -var-file terraform.tfvars
terraform apply -var-file terraform.tfvars
- Add Log Analytics resources
- Scale-Up Scale-Down events
- Backup and Restore DB
- Add Multi-region Support
- Additional Instances
- Azure CDN
Your Name - @tp_allen_ - [email protected]
Project Link: https://github.com/tp-allen/simple_api