Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 6 additions & 15 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -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": {},
Expand All @@ -11,17 +10,9 @@
]
}
},
"updateContentCommand": "[ -f packages.txt ] && sudo apt update && sudo apt upgrade -y && sudo xargs apt install -y <packages.txt; [ -f requirements.txt ] && pip3 install --user -r requirements.txt; pip3 install --user streamlit; echo '✅ Packages installed and Requirements met'",
"updateContentCommand": "sudo apt update && sudo apt upgrade -y && if ! command -v uv &> /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
]
}
"portsAttributes": {}
}
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Binary file added app/ballot_initiative_schematic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.