CxWebApp - macOS shell + swift-app wired to CxLLM-SDK
|
Some checks are pending
build-and-push / image (push) Waiting to run
- Implemented demand pane for managing trend-driven design jobs. - Created diffusion pane for generating images via Stable Diffusion. - Added inbox pane for sweeping and routing artifacts through the CxAI inbox classifier. - Developed items pane for CRUD operations against /api/items. - Introduced lang pane for running language pipelines. - Established mac pane for macOS app distribution information. - Integrated slack pane for sending messages and displaying diagnostics. - Built system pane for process introspection and version information. - Launched tools pane for browsing and invoking MCP tools. - Set up websocket pane for connecting to the /ws/echo service. |
||
|---|---|---|
| .gitea/workflows | ||
| compose | ||
| include | ||
| share/cxai-mac | ||
| src | ||
| static | ||
| swift-app | ||
| .dockerignore | ||
| .gitignore | ||
| CMakeLists.txt | ||
| Dockerfile | ||
| README.md | ||
CxWebApp
C++ web application using Crow framework, built with CMake and Xcode.
Prerequisites
- macOS with Xcode and command-line tools installed
- CMake 3.22+ (
brew install cmake)
Build with Xcode
# Generate Xcode project
cmake -B build -G Xcode
# Open in Xcode
open build/CxWebApp.xcodeproj
Build and run the CxWebApp scheme in Xcode (⌘R).
Build from command line
cmake -B build
cmake --build build
./build/CxWebApp
Usage
Open http://localhost:8080 in your browser.
API Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /api/health |
Health check |
| GET | /api/items |
List all items |
| GET | /api/items/:id |
Get item by ID |
| POST | /api/items |
Create item |
| DELETE | /api/items/:id |
Delete item |
Example
# Create
curl -X POST http://localhost:8080/api/items \
-H "Content-Type: application/json" \
-d '{"name":"Test","description":"A test item"}'
# List
curl http://localhost:8080/api/items