pamelafox-site

My personal homepage.

Stars
17
Committers
6

pamelafox-site

A personal homepage.

Local development

python3 -m pip install -r requirements-dev.txt
pre-commit install
flask --debug --app src/app:app run --port 50505

Then open the website at localhost:5000.

Running tests

Run the unit tests:

python3 -m pytest

Run the accessibility tests:

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 and create an Azure Subscription.

  2. Install the Azure Developer CLI. (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:

    azd auth login
    
  4. Provision and deploy all the resources:

    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:

    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:

azd pipeline config