This repository has been archived and is no longer maintained. Check out sample-app-vue instead.
-
install dependencies
npm install
-
run the development environment
npm run serve
This set up will use sample project configured by the environment variable in
.env
file, follow next sections to be able to use your own project.
-
Go to app.kontent.ai and create empty project
-
Go to "Project Settings", select API keys and copy
- Project ID
- Management API key require Business tier or higher or Trial account
-
Install Kontent Backup Manager and import data to newly created project from
kontent-backup-vue-blog.zip
file (place appropriate values forapiKey
andprojectId
arguments):npm i -g @kentico/kontent-backup-manager kbm --action=restore --apiKey=<Management API key> --projectId=<Project ID> --zipFilename=kontent-backup-vue-blog
Alternatively, you can use the Template Manager UI for importing the content and you could also skip next step, if you select to publish all items after import.
-
Go to your Kontent project and publish all the imported items.
Copy .env
and name it .env.local
then set the VUE_APP_KONTENT_PROJECT_ID
environment variable to value from Kontent -> "Project Settings" -> API keys -> Project ID. Now your local environment will use this file as a source of environment variables.
npm run lint
compile
npm run build
Netlify CMS can run in any frontend web environment, but the quickest way to try it out is by running it on a pre-configured starter site with Netlify. Use the button below to build and deploy your own copy of the repository:
After clicking that button, you’ll authenticate with GitHub and choose a repository name. Netlify will then automatically create a repository in your GitHub account with a copy of the files from the template. Next, it will build and deploy the new site on Netlify, bringing you to the site dashboard when the build is complete. Next, you’ll need to set up Netlify’s Identity service to authorize users to log in to the CMS.
Netlify is using file-based configuration. That meant it presets your configuration based on the .netlify.toml. That includes environment variables. If you want to use your custom project, set the
VUE_APP_KONTENT_PROJECT_ID
to you projects (Join codebase and content data).
There are two content type snippets. They are defined as follows:
- Front Matter
- Title - Generates URL slug, Required
- Feature Image - Limited to at most 1 asset, Type limited to adjustable images
- Metadata (currently used by several content types, but not in the application)
- Page Title - No limitations
- Page Description - No limitations
There are eight content types defined for this project. The types.json
in the sample-data
folder contains the types and their elements. As the JSON does not include the specified element limitations, we've outlined the limitations of any elements that have them below along with a few other notes. If not specified below the element found in the JSON has no limitations.
- Author
- Name - Required
- Avatar - Required, Limited to exactly 1 asset, Type limited to adjustable images
- Required, Limited to 30 words
- Configuration
- Elements prefixed with
front__matter__
come from the front matter content type snippet - About Blurb - Required, Limited to exactly 1 item, Limited to Rich Text Component type
- Elements prefixed with
- HTML Embed (used only as a component, no element limitations)
- Page
- Elements prefixed with
front__matter__
come from the front matter content type snippet - Slug - Required, Auto-generated based on Title
- Elements prefixed with
metadata__
come from the front matter content type snippet
- Elements prefixed with
- Post
- Elements prefixed with
front__matter__
come from the front matter content type snippet - Published - Required (used for URLs and sorting)
- Slug - Required, Auto-generated based on Title
- Authors - Required, Limited to at least 1 item, Limited to Author type
- Geography - Required, Not used in application currently
- Activities - Required
- Elements prefixed with
- Rich Text Component (used only as a component)
- Taxonomy Details
- Elements prefixed with
front__matter__
come from the front matter content type snippet
- Elements prefixed with
- Wikipedia Attribution (used only as a component)
- Source Title - Required
- Source URL - Required
There is a couple of posts from three authors, categorized via taxonomy.