-
Notifications
You must be signed in to change notification settings - Fork 1
cloudwrapper HowTo
GitHub Action edited this page Apr 21, 2026
·
1 revision
This guide demonstrates how to initialize an entire cloud environment with a single wrapper.
Instead of importing and configuring Backend, Storage, and Auth separately, you just configure the wrapper.
import { CloudWrapper } from '@quatrain/cloudwrapper'
import { FirebaseWrapper } from '@quatrain/cloudwrapper-firebase'
const firebaseEnv = new FirebaseWrapper({
config: {
projectId: 'my-project',
clientEmail: 'service@account.com',
privateKey: '-----BEGIN PRIVATE KEY-----...'
}
})
// This single call initializes everything
CloudWrapper.addAdapter('default', firebaseEnv, true)
// You can now immediately use the subsystems:
// import { Backend } from '@quatrain/backend'
// Backend.getAdapter() // Returns the configured FirestoreAdapter