C++ SCHX ยท rev 4

๐Ÿš€ HSX Getting Started

Learn how to write, run, and deploy HSX code in under 5 minutes.

Create a file called app.hsx with this content:

โ–ถ๏ธ Step 2: Run Your HSX File ๐Ÿ’ป Local Development hsx app.hsx Runs in terminal mode

Opens in browser on port 8080

Runs as a backend server

๐Ÿ“ Step 3: HSX Project Structure {`my-hsx-project/ โ”œโ”€โ”€ H.Source/ โ”‚ โ””โ”€โ”€ _.HSX/ โ”‚ โ”œโ”€โ”€ H_APP/ โ”‚ โ”‚ โ””โ”€โ”€ source.hsx # Main application entry โ”‚ โ”œโ”€โ”€ H_APP/LIB/ โ”‚ โ”‚ โ””โ”€โ”€ Router.hsx # Router library โ”‚ โ””โ”€โ”€ HSX.Routes/ โ”‚ โ”œโ”€โ”€ links.hsx # Route definitions โ”‚ โ”œโ”€โ”€ index.hsx # Home page (/) โ”‚ โ””โ”€โ”€ about.hsx # About page (/about) โ”œโ”€โ”€ Config.hsx # Runtime configuration โ””โ”€โ”€ IMPORTS.hsx # Module imports`} ๐Ÿ”ง Step 4: Config.hsx Settings {`// Config.hsx - Controls how your app runs MODE: CPGH // CPGH protocol mode (or HTTP) PORT: 4096 // Server port RUN: /app // Working directory BUILD: true // Build before running DEBUG: true // Enable debug logging OPTIMIZE: true // Enable optimizations LANGUAGE: hsx // Language detection`} Config.hsx is automatically detected when your project runs in a container.

๐Ÿ“ Step 1: Write Your First HSX File

โ–ถ๏ธ Step 2: Run Your HSX File

๐Ÿ“ Step 3: HSX Project Structure

๐Ÿ”ง Step 4: Config.hsx Settings

๐Ÿš€ Step 5: Deploy to School-GIT