1.3 KiB
1.3 KiB
http-js Template
A starter template for building JavaScript HTTP applications with Spin.
Getting Started
Build the App
spin build
Run the App
spin up
Using Spin Interfaces
To use additional Spin interfaces, install the corresponding packages:
| Interface | Package |
|---|---|
| Key-Value | @spinframework/spin-kv |
| LLM | @spinframework/spin-llm |
| MQTT | @spinframework/spin-mqtt |
| MySQL | @spinframework/spin-mysql |
| PostgreSQL | @spinframework/spin-postgres |
| Redis | @spinframework/spin-redis |
| SQLite | @spinframework/spin-sqlite |
| Variables | @spinframework/spin-variables |
Using the StarlingMonkey Debugger for VS Code
- First install the StarlingMonkey Debugger extension.
- Build the component using the debug command
npm run build:debug. - Uncomment
tcp://127.0.0.1:*in theallowed_outbound_hostsfield in thespin.toml. - Start the debugger in VS Code which should start Spin and attach the debugger. The debugger needs to be restarted for each http call.