How to use the @budibase/server/utilities/budibaseApi.getMasterApisWithFullAccess function in @budibase/server

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 11 days ago

Package Health Score

81 / 100
Full package analysis