Try our conversational search powered by Generative AI!

MartinOttosen
Aug 18, 2021
  3289
(4 votes)

JS SDK public preview

Maybe you noticed we announced the public preview for CMS 12 a few months ago? CMS 12 natively supports .Net 5 and with it a more portable CMS which no longer requires Windows or IIS. If you like Node.js this is good news, since you can more easily work with your favorite IDE and OS and just run the CMS in the background e.g., in a terminal window in Visual Studio Code. Along with CMS 12 we are releasing a brand-new open-source JS SDK now available in preview on GitHub.

What’s in the box

The JS SDK has a few pieces to it:

  1. A Node.js CLI for managing your content definitions.
  2. A typescript client for fetching content from the CMS.
  3. A decoupled Vue.js sample site running on Node.js and CMS 12 (preview)

How to get started

The simplest way to get acquainted with the SDK is probably to clone the repository and setup the sample site. The sample site is based on CMS 12, and includes a preview of the new Content Definitions API which we are hoping to ship over the summer together with the final version of CMS 12. The current sample site uses OpenID Connect in the platform directly i.e., no need for an external identity provider to get things going.

Documentation

The SDK modules and samples each have a README in the project roots, which is a good starting point, but the documentation here on world for Content Definitions API is not complete or published yet, but thanks to the external reviews feature you can sneak a peek at the preliminary documentation here:

 

Aug 18, 2021

Comments

Jonas Boman
Jonas Boman Oct 21, 2021 07:49 AM

Hi. The links to API Fundamentals does not work.

Please login to comment.
Latest blogs
Optimizely Search and Navigation - Part 2 - Filter Tips

Introduction Continuing from Part 1 – Search Tips , today I will share the next part – filter tips. The platform versions used for this article are...

Binh Nguyen Thi | Jul 1, 2024

Integrating HubSpot CRM without the MA Connector

Have HubSpot CRM? Want to push user data into it from Optimizely? Don’t have any personalisation requirements with that data? Don’t want to pay $80...

Matt Pallatt | Jun 27, 2024

Keeping the website secure by updating external packages

Did you see the latest warning from Optimizely to update this package with a critical security warning? https://world.optimizely.com/documentation/...

Daniel Ovaska | Jun 27, 2024

Optimizely CMS image anonymization now available for Linux!

The famous image anonymization add-on for Optimizely CMS, with at least 5 downloads, is now finally available for use on Linux. Supports simultaneo...

Tomas Hensrud Gulla | Jun 25, 2024 | Syndicated blog

Remove a segment from the URL in CMS 12

Problem : I have created thousands of pages dynamically using schedule jobs with different templates (e.g. one column, two columns, etc..) and stor...

Sanjay Kumar | Jun 21, 2024

Copying property values part 2

After publishing my last article about copying property values to other language versions, I received constructive feedback on how could I change t...

Grzegorz Wiecheć | Jun 18, 2024 | Syndicated blog