How to use @budibase/server - 1 common examples

To help you get started, we’ve selected a few @budibase/server examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Budibase / budibase / packages / cli / src / commands / new / newHandler.js View on Github external
const run = async (opts) => {
    const context = await getAppContext({configName:opts.config, masterIsCreated:true}); 
    opts.config = context.config;
    const bb = await getMasterApisWithFullAccess(context);

    const app = bb.recordApi.getNew("/applications", "application");
    app.name = opts.name;

    await bb.recordApi.save(app);
    await createEmtpyAppPackage(opts);

    exec(`cd ${join(opts.config.latestPackagesFolder, opts.name)} && npm install`);
}

@budibase/server

Budibase Web Server

GPL-3.0
Latest version published 4 hours ago

Package Health Score

87 / 100
Full package analysis