Skip to content

Simply007/kontent-sample-app-gatsby-intranet

Repository files navigation

Material UI Paperbase Starter for Gatsby with Kentico Kontent 🔥

Netlify Status Live demo

Create dashboards and administration tools in Gastby using Material UI's Paperbase Premium Theme and Kentico Kontent.

template preview

🚀 Quick start

  1. Start developing.

    Navigate into your new site’s directory and start it up.

    cd kontent-sample-app-gatsby-intranet
    npm install # in case you haven't used gatsby-cli `gatsby new` command to initialize the starter
    gatsby develop
  2. Open the source code and start editing!

    Your site is now running at http://localhost:8000!

    Note: You'll also see a second link: http://localhost:8000/___graphql. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.

    Open the kontent-sample-app-gatsby-intranet directory in your code editor of choice and edit src/pages/index.js. Save your changes and the browser will update in real time!

Create content source

  1. Go to app.kontent.ai and create empty project

  2. Go to "Project Settings", select API keys and copy

    • Project ID
    • Management API key require Business tier or higher or Trial account
  3. Install Kontent Backup Manager and import data to newly created project from kontent-backup.zip file (place appropriate values for apiKey and projectId arguments):

    npm i -g @kentico/kontent-backup-manager
    
    kbm --action=restore --apiKey=<Management API key> --projectId=<Project ID> --zipFilename=kontent-backup

    Alternatively, you can use the Template Manager UI for importing the content.

  4. Go to your Kontent project and publish all the imported items.

Join codebase and content data

Copy .env.template and name it .env then set the KONTENT_PROJECT_ID environment variable to value from Kontent -> "Project Settings" -> API keys -> Project ID.

You are now ready to use the site as your own!

Deploy with Netlify

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:

Deploy to Netlify

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 KONTENT_PROJECT_ID to you projects (Join codebase and content data).

About

Showcase of Kentico Kontent Intranet admin UI using Material design and Gatsby.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published