In this guide, you'll get a brief introduction to website development practices with Kontent.ai. You'll start by running a Vue sample application on your machine and updating an article in Kontent.ai's Sample Project. You'll also explore how the content of the article is structured.
Running the Vue sample app
Before going any further, make sure you have the following:
When you run the application for the first time, you will see a Configuration page. Use it to connect the app to your Sample Project in Kontent.ai
Click Get project ID from Kontent.ai. A new browser window will open.
Sign in to your account or create a new one.
From the list of your projects, select the Sample project.
Click Select project.
The application now displays content from your Sample Project.
Now, let's explore the Sample Project and update its content so that you can see the changes reflected in your locally running application.
Deploying the Vue sample app
When using a headless CMS like Kontent.ai power a single-page application, you don't necessarily have to write any server-side code. Because the application only requires static resources, you have many interesting deployment options available to you.Check out platform-specific deployment guides in Vue.js docs.
Kontent.ai makes no assumptions about how your content is displayed. It simply delivers your content via a RESTful Delivery API to any application that asks for it – be it a website, mobile app, chatbot, electronic billboard, virtual voice assistant, or an internet-enabled toaster.We deliver the content, you do whatever you want with it – using the technology of your choice.A traditional CMS would force you to put your content into neatly arranged boxes to fit inside a pre-defined template. The power of Kontent.ai comes from not getting in your way. Content structure and content presentation are truly separated and you have the flexibility to define both according to the needs of your project.
The sample app displays data from the Sample Project that demonstrates our best practices and features of Kontent.ai. If you don't have it yet, create your own sample project, it only takes a minute.This full-featured project contains marketing content for Dancing Goat – an imaginary chain of coffee shops. Once you run the sample app, you'll see content from the Sample Project displayed in your browser.
Make a change in the article, for example, edit the Title text or some other element.
Publish the changes to see them in the sample app.
Voila! You have successfully updated content in your Sample Project. Refresh the browser window with your application to see the changes on the website.
Feel free to further explore how the content in your sample project is structured.
Exploring content structure
To see details about the opened content item, go back to Kontent.ai and click Content details in the top right. Under Content type, notice that the item is based on the Article content type.To open the content type for editing, click Article in the content details.
How content is structured in Kontent.ai
A content item is any piece of content in your project. It is made up of elements, such as texts, images, files, etc.Each content item is based on a single content type. A content type is a template that defines the structure of the content item – which elements it contains, their names, limitations, guidelines, and so on.
New to modular content platforms?If you are new to the world of modular content platforms or headless CMSs, you might want to start by building a Hello world application.After you grasp the core idea behind these platforms, everything in the sample application will make a lot more sense much faster.