Skip to content

Commit ecf9c32

Browse files
committed
2 parents 19a752a + 35c1119 commit ecf9c32

File tree

3 files changed

+8
-19
lines changed

3 files changed

+8
-19
lines changed

.devcontainer/devcontainer.json

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
2-
"name": "Python 3",
3-
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
4-
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bookworm",
2+
"name": "Ballot Initiative",
3+
"image": "mcr.microsoft.com/devcontainers/python:1-3.13-bookworm",
54
"customizations": {
65
"vscode": {
76
"settings": {},
@@ -11,17 +10,9 @@
1110
]
1211
}
1312
},
14-
"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'",
13+
"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.'",
1514
"postAttachCommand": {
16-
"server": "streamlit run app/Home.py"
15+
"server": "uv run main.py"
1716
},
18-
"portsAttributes": {
19-
"8501": {
20-
"label": "Application",
21-
"onAutoForward": "openPreview"
22-
}
23-
},
24-
"forwardPorts": [
25-
8501
26-
]
27-
}
17+
"portsAttributes": {}
18+
}

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ An alternate approach to get up and running is to use [Github Codespaces](https:
122122
### Running Project Tests
123123

124124
1. Navigate to the project root folder
125-
2. Activate the virtual environment
126-
3. Run the following command:
125+
2. Run the following command:
127126

128127
```bash
129128
uv run pytest
@@ -132,8 +131,7 @@ An alternate approach to get up and running is to use [Github Codespaces](https:
132131
### Running API
133132

134133
1. Navigate to the project root folder
135-
2. Activate the virtual environment
136-
3. Run the following command:
134+
2. Run the following command:
137135

138136
```bash
139137
uv run fastapi dev app/api.py
112 KB
Loading

0 commit comments

Comments
 (0)