first commit

This commit is contained in:
2026-08-08 11:08:00 -05:00
commit c51740c589
32 changed files with 2461 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import { utils } from '@start9labs/start-sdk'
import { storeJson } from '../fileModels/store.json'
import { sdk } from '../sdk'
const secret = () =>
utils.getDefaultString({ charset: 'a-z,A-Z,0-9', len: 64 })
export const seedStore = sdk.setupOnInit(async (effects, kind) => {
if (kind !== 'install') return
await storeJson.merge(effects, {
databaseRootPassword: secret(),
databasePassword: secret(),
authSecret: secret(),
})
})