๐ 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.