Skip to content

bcms/most

Repository files navigation

BCMS Most

This project is connecting BCMS Client and BCMS Backend API and providing useful tools for website frameworks like Gatsby, Nuxt and Next.

Framework implementations

BCMS Most has its implementation for 3 major frameworks at the moment (this number increase over time):

Those packages are just wrappers around the BCMS Most. If your favorite framework is not listed, you can always make custom implementation using BCMS Most API.

import { createBcmsMost } from '@becomes/cms-most';

async function main() {
  const most =
    /**
     * You can provide client and configuration object
     * if you have them. If not, the BCMS Most will
     * create a client get configuration from `bcms.config.js`
     * file located at PWD location.
     */
    createBcmsMost();

  await most.content.pull();
  console.log(
    await most.content.entry.findOne(
      'my_template',
      async (item) => item.meta.en.slug === 'my_entry_slug',
    ),
  );
}

main().catch((err) => {
  console.error(err);
  process.exit(1);
});

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published