setupBackoffice = (collections, providedOptions = {}, collectionsOptions = {}) => {
  const options = mergeDefaultBackofficeOptions(providedOptions);
  // pages for each collection
  collections.forEach(collection => {
    const collectionName = getCollectionName(collection);
    const collectionOptions = mergeDefaultCollectionOptions(
      collectionsOptions[collectionName],
      options
    );
    const { ListComponent, ItemComponent } = createCollectionComponents(
      collection,
      collectionOptions
    );
    setupCollectionRoutes(collection, collectionOptions);
    setupCollectionMenuItems(collection, collectionOptions);
  });
  // index
  addRoute({
    name: 'vulcan-backoffice', path: options.basePath,
    componentName: 'VulcanBackofficeIndex',
    layoutName: 'VulcanBackofficeLayout',
    options
  }); // setup the route
}
Setup a full fledged backoffice
- create components
- create routes
- register menu items