Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pamelafox/pamelafox-site
My personal homepage.
https://github.com/pamelafox/pamelafox-site
azure flask
Last synced: about 2 months ago
JSON representation
My personal homepage.
- Host: GitHub
- URL: https://github.com/pamelafox/pamelafox-site
- Owner: pamelafox
- Created: 2010-12-29T21:00:41.000Z (almost 14 years ago)
- Default Branch: main
- Last Pushed: 2024-04-09T14:11:08.000Z (9 months ago)
- Last Synced: 2024-05-01T18:41:36.601Z (8 months ago)
- Topics: azure, flask
- Language: HTML
- Homepage: http://www.pamelafox.org
- Size: 719 KB
- Stars: 17
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# pamelafox-site
A personal homepage.## Local development
```shell
python3 -m pip install -r requirements-dev.txt
``````shell
pre-commit install
``````shell
flask --debug --app src/app:app run --port 50505
```Then open the website at localhost:5000.
## Running tests
Run the unit tests:
```shell
python3 -m pytest
```Run the accessibility tests:
```shell
playwright install --with-deps
python3 -m pytest src/tests/axe_analysis.py
```## Deployment instructions
This project is designed for deployment on Azure Static Web Apps.
Steps for deployment:
1. Sign up for a [free Azure account](https://azure.microsoft.com/free/) and create an Azure Subscription.
2. Install the [Azure Developer CLI](https://learn.microsoft.com/azure/developer/azure-developer-cli/install-azd). (If you open this repository in Codespaces or with the VS Code Dev Containers extension, that part will be done for you.)
3. Login to Azure:```shell
azd auth login
```4. Provision and deploy all the resources:
```shell
azd up
```It will prompt you to provide an `azd` environment name (like "django-app"), select a subscription from your Azure account, and select a location (like "eastus"). Then it will provision the resources in your account and deploy the latest code. If you get an error with deployment, changing the location can help, as there may be availability constraints for some of the resources.
5. When `azd` has finished deploying, you'll see an endpoint URI in the command output. Visit that URI to see the website.
6. When you've made any changes to the app code, you can just run:
```shell
azd deploy
```## CI/CD pipeline
This project includes a Github workflow for deploying the resources to Azure
on every push to main. That workflow requires several Azure-related authentication secrets
to be stored as Github action secrets. To set that up, run:```shell
azd pipeline config
```