Angular Starter for ContentChef - Headless CMS
ContentChef is an Headless CMS designed to accelarete the development of modern,cross channel digital products.
This starter is a sample Angular integrated with our Delivery API using the ContentChef Typescript SDK
In order to use make this starter work, you will need
- An active ContentChef account (sign up for a 30-day free trial here)
- Node JS >= 10.13.0
- NPM >= 6.11.0
Clone the starter repo and install all the deps
git clone git@github.com:ContentChef/angular-starter.git
cd angular-starter
npm install
Get your SpaceID, Online API Key from your dashboard home page.
Open ./src/app/contentChef.ts
and copy your data in the clinet configuration and use "example-ch" for your channel now.
export class ContentChefService {
constructor() {
this.onlineChannel = configure({
spaceId: '<your spaceId>'
}).onlineChannel('<your online api key>', 'example-ch');
}
}
You are now ready to start your angular app
npm run start
Enjoy!
You can now visit https://localhost:4200/sites and see the list of content fetched from Content Chef!