- Get Aidbox Liecense
- Deploy Aidbox locally
docker compose up -d
- Start development
npm run dev
npm run dev
- Get Aidbox
- don't sync
.test.js
files in routes directory
[:html
#_[:script {:type "module"}
"import hotwiredTurbo from 'https://cdn.skypack.dev/@hotwired/turbo';"]
[:script {:type "module" :src "https://unpkg.com/@hotwired/[email protected]/dist/turbo.es2017-esm.js"}]
[:script {:src "/ui/$dev-mode"}]
[:form {:method "POST" :action "/ui/auth/logout"}
[:input {:type "hidden" :name "_csrf" :value (auth/csrf)}]
[:button "Sign out"]]
[:div "chat"]
[:turbo-frame {:id "chat"}
[:div "message"]]
[:turbo-frame {:id "chat-form"}
[:form {:action "/ui/chat/$send-message" :method "post"}
[:button "Generate new message"]]]
]