Code root
The code folder holds custom Implementations written as programs; it is always git-first, and each push imports as a Change into db.sb.
| Property | Value |
|---|---|
| Path | code/ |
| Holds | Implementation |
| Kind | folder |
| Leaders | git-first |
| Team | Engineering Team |
| Written by | Change.merge |
| Compiled by | SoftwareBuilder |
Example
code/ in a Startup repository. Closewise, a sample business, declares a Close Noun.
export default {
async fetch(request: Request, env: Env, $: $) {
const form = await request.formData()
await $.Close.reconcile({ close: String(form.get('close_id')), through: String(form.get('through')) })
return new Response(null, { status: 204 })
},
}Generates
SoftwareBuilder compiles it into these records, Verbs and routes.
| Kind | What |
|---|---|
| Records | Implementation |
| Verbs | None. |
| Routes | None. |