Storecraft - Next Gen Commerce-As-Code

1 min read Original article ↗

const app = new App({

general_store_name: 'Wush Wush Games',

})

.withPlatform(new NodePlatform())

.withDatabase(new LibSQL())

.withStorage(new NodeLocalStorage())

.withMailer(new Resend())

.withPaymentGateways({

paypal: new Paypal(),

stripe: new Stripe(),

})

.withExtensions({

postman: new PostmanExtension(),

})

.withAI(

new OpenAI({ model: 'gpt-4o-mini'})

)

.withVectorStore(

new LibSQLVectorStore({

embedder: new OpenAIEmbedder(),

})

)

.withAuthProviders({

google: new GoogleAuth(),

})

.on(

'order/checkout/complete',

async (event) => {

}

).init();