- Python v10 or higher
- Azure CosmosDB for Table database connection string
- Azure CLI
- Install azure-functions-core-tools
npm install -g azure-functions-core-tools
- Clone repository
git clone https://github.com/gabbyTI/python-counter-api.git
- Initialize the azure function to create the
cd python-counter-api
func init
- Install dependencies
pip install -r requirements.txt
- Add connection string and table name to the local.settings.json file(this is created after the 2nd steps)
{
...
"Values": {
...
"conn_str": "your connection string",
"table_name": "your table name"
}
}
- Login to Azure
az login
- Start the azure function locally
func start -p 7071