Bootstrap your project
First of all you will need to create your repository.
A repository is where your website's content and structure will live. Simply create one for Free!
Create RepositoryGetting Started with Node Npm plugin
cmsdriven provides a content infrastructure that comprises REST APIs for working with your content.
Get your Access Token
Before you use our API you must obtain your Access Token. Every environment has its own Access Token.
Manage your Access TokensInstall the Dependencies
Copy
npm i @cmsdriven/headless --save
Setup the Client
Find the place in the code where you want to consume the content from cmsdriven and then set up the client.
Copy
// Import the cmsdriven sdk
const cmsdriven = require("@cmsdriven/headless");
// Create a client for your token
const client = cmsdriven.createClient({
accessToken: "YOUR_ACCESS_TOKEN_HERE"
});
Once you have done that you are ready to use the client to fetch content.
Fetch one page
Copy
this.pageComponents = await client.getPage('/demo-page');
Fetch All Pages
Copy
this.pageComponents = await client.getAllPages();
Fetch All Pages filtered by a Tag
Copy
this.pageComponents = await client.getPagesByTag('MY_CUSTOM_TAG');
That's it! You are live
You can still build ui components the way you used to before.
There is no additional leanring curve. And no technical restriction on what you can do.

Have any technical questions?
If you need any help, we are here for you.