This repository contains the Augur Frontend application, a dashboard for visualizing and analyzing data.
Task 1: System architecture and design documentationTask 2: Engineering tickets and project planningTask 3: The main Django application codeTask 4: Deployment scripts and CI/CD configuration
This project uses GitHub Actions for continuous deployment to Azure App Service. The workflow automatically builds and deploys the application when changes are pushed to the main branch.
The GitHub Actions workflow is defined in .github/workflows/azure-deploy.yml and includes the following steps:
- Setting up the Python environment
- Installing dependencies
- Running tests
- Collecting static files
- Creating a deployment package
- Deploying to Azure App Service
To manually deploy the application, use the deploy.py script in the Task 4 directory:
python deploy.py --env [dev|staging|production] --collect-static --run-testsTo use the GitHub Actions workflow, you need to set up Azure credentials as a GitHub secret named AZURE_CREDENTIALS. You can generate these credentials using the Azure CLI:
az ad sp create-for-rbac --name "AugurGitHubActions" --role contributor \
--scopes /subscriptions/{subscription-id}/resourceGroups/{resource-group} \
--sdk-authCopy the JSON output and add it as a secret in your GitHub repository settings.