Skip to content

Commit d92f06f

Browse files
committed
feat: add devcontainer and refactor frontend routing
- Add devcontainer configuration for VS Code - Implement page-based routing with HomePage and TestPage - Refactor BoltService with improved formatting - Update docker-compose with volume management - Add application access documentation to README - Update design doc with MCP server guidance - Enhance gitignore for multiple node_modules scenarios
1 parent 1b0115e commit d92f06f

File tree

20 files changed

+692
-311
lines changed

20 files changed

+692
-311
lines changed

.devcontainer/README.md

Whitespace-only changes.

.devcontainer/devcontainer.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"name": "Bolt Execution Manager",
3+
"dockerComposeFile": "../docker-compose.yml",
4+
"service": "app",
5+
"workspaceFolder": "/workspace",
6+
7+
"customizations": {
8+
"vscode": {
9+
"extensions": [
10+
"dbaeumer.vscode-eslint",
11+
"esbenp.prettier-vscode",
12+
"svelte.svelte-vscode",
13+
"ms-azuretools.vscode-docker",
14+
"editorconfig.editorconfig"
15+
],
16+
"settings": {
17+
"editor.formatOnSave": true,
18+
"editor.defaultFormatter": "esbenp.prettier-vscode",
19+
"editor.codeActionsOnSave": {
20+
"source.fixAll.eslint": "explicit"
21+
},
22+
"[typescript]": {
23+
"editor.defaultFormatter": "esbenp.prettier-vscode"
24+
},
25+
"[svelte]": {
26+
"editor.defaultFormatter": "svelte.svelte-vscode"
27+
}
28+
}
29+
}
30+
},
31+
32+
"forwardPorts": [3000, 5173],
33+
"portsAttributes": {
34+
"3000": {
35+
"label": "Backend API",
36+
"onAutoForward": "notify"
37+
},
38+
"5173": {
39+
"label": "Frontend (Vite)",
40+
"onAutoForward": "notify"
41+
}
42+
},
43+
44+
"postCreateCommand": "npm install && cd backend && npm install && cd ../frontend && npm install",
45+
46+
"remoteUser": "node",
47+
48+
"features": {
49+
"ghcr.io/devcontainers/features/git:1": {},
50+
"ghcr.io/devcontainers/features/github-cli:1": {}
51+
}
52+
}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Dependencies
22
node_modules/
3+
node_modules_mac/
4+
node_modules_cont/
35
package-lock.json
46

57
# Build outputs

.kiro/specs/pabawi/design.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ docker run -d \
582582
4. What level of Bolt output verbosity should we capture?
583583
- **Decision**: Use `--format json` for structured output, capture stderr for errors
584584

585-
## Documents
585+
## IMPORTANT: Documents and MCP servers
586586

587587
Documentation for final users should always be placed in the docs/ directory.
588588

@@ -593,4 +593,8 @@ and be named like YYYYMMDD-HHMM-DESCRIPTION.md. (For example .kiro/summaries/202
593593

594594
If there are things left to do, like fixing tests or implement features which have not been completed in a session, they should be documented under .kiro/todos/ and named with the format YYYYMMDD-HHMM-DESCRIPTION.md
595595

596-
Scripts useful for testing, troubleshooring, development or maintenance should be placed in appropriate subdirs in the scripts/ directory.
596+
Scripts useful for testing, troubleshooring, development or maintenance should be placed in appropriate subdirs in the scripts/ directory.
597+
598+
MCP servers are available for SVELTE, use the get-documentation, svelte-autofixer, list-sections and playground-link tools to investigate Svelte related code activities.
599+
600+
For TailWind CSS, use MCP tailwindcss-server and the related tools.

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@ npm run dev:backend
4040
npm run dev:frontend
4141
```
4242

43+
### Accessing the Application
44+
45+
**Development Mode** (when running both servers separately):
46+
- **Frontend UI**: http://localhost:5173 (Main application interface)
47+
- **Backend API**: http://localhost:3000/api (API endpoints)
48+
49+
**Production Mode** (Docker or built application):
50+
- **Application**: http://localhost:3000 (Frontend and API served together)
51+
- The backend serves the built frontend as static files
52+
4353
## Build
4454

4555
```bash
@@ -91,6 +101,8 @@ docker run -d \
91101
pabawi:latest
92102
```
93103

104+
Access the application at http://localhost:3000
105+
94106
### Running with Docker Compose
95107

96108
```bash
@@ -104,6 +116,8 @@ docker-compose logs -f
104116
docker-compose down
105117
```
106118

119+
Access the application at http://localhost:3000
120+
107121
### Environment Variables
108122

109123
Copy `.env.example` to `.env` and configure as needed. Key variables:

0 commit comments

Comments
 (0)