diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 6ffa491..2aa4c2e 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,7 +1,6 @@ { - "name": "Python 3", - // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile - "image": "mcr.microsoft.com/devcontainers/python:1-3.12-bookworm", + "name": "Ballot Initiative", + "image": "mcr.microsoft.com/devcontainers/python:1-3.13-bookworm", "customizations": { "vscode": { "settings": {}, @@ -11,17 +10,9 @@ ] } }, - "updateContentCommand": "[ -f packages.txt ] && sudo apt update && sudo apt upgrade -y && sudo xargs apt install -y /dev/null; then curl -Ls https://astral.sh/uv/install.sh | sh && export PATH=\\\"$HOME/.cargo/bin:\\$PATH\\\"; fi && echo '✅ System updated and uv installed.'", "postAttachCommand": { - "server": "streamlit run app/Home.py" + "server": "uv run main.py" }, - "portsAttributes": { - "8501": { - "label": "Application", - "onAutoForward": "openPreview" - } - }, - "forwardPorts": [ - 8501 - ] - } \ No newline at end of file + "portsAttributes": {} +} diff --git a/README.md b/README.md index f27c322..1a1f5db 100644 --- a/README.md +++ b/README.md @@ -122,8 +122,7 @@ An alternate approach to get up and running is to use [Github Codespaces](https: ### Running Project Tests 1. Navigate to the project root folder -2. Activate the virtual environment -3. Run the following command: +2. Run the following command: ```bash uv run pytest @@ -132,8 +131,7 @@ An alternate approach to get up and running is to use [Github Codespaces](https: ### Running API 1. Navigate to the project root folder -2. Activate the virtual environment -3. Run the following command: +2. Run the following command: ```bash uv run fastapi dev app/api.py diff --git a/app/ballot_initiative_schematic.png b/app/ballot_initiative_schematic.png new file mode 100644 index 0000000..87cfed3 Binary files /dev/null and b/app/ballot_initiative_schematic.png differ