C++ SCHX ยท rev 4

HSX Backend Server

HSX includes a built-in backend server with routing, JSON responses, database operations, and CPGH protocol support.

{`// REST API in HSX HSX: "/api/users" { "SELECT * FROM users" "[ ]" = 200 } HSX: "/api/users" { "INSERT INTO users (name) VALUES ('Bob')" = 201 " " } HSX: "database.db" HSX: { "SELECT * FROM missing_table" "database" } HSX: "database" { " " = 500 }`} ๐ŸŒ Backend Server in Docker HSX backend servers run inside Docker containers with the HSX runtime. The server automatically starts on port 4096 (CPGH protocol) and 3000 (HTTP).

๐Ÿ”Œ Backend Commands

๐Ÿ“ Backend Example

๐ŸŒ Backend Server in Docker