All Projects → Kentico → kontent-sample-app-react

Kentico / kontent-sample-app-react

Licence: MIT license
Sample React SPA utilizing the Kontent Delivery API to fetch content.

Programming Languages

CSS
56736 projects
typescript
32286 projects

Projects that are alternatives of or similar to kontent-sample-app-react

statiq-starter-kontent-lumen
Lumen is a minimal, lightweight, and mobile-first starter for creating blogs using Statiq and Kontent by Kentico.
Stars: ✭ 22 (-51.11%)
Mutual labels:  headless-cms, kentico-kontent
contentful.net
.NET Library for Contentful's Content Delivery and Management API
Stars: ✭ 75 (+66.67%)
Mutual labels:  content-delivery, headless-cms
kontent-tutorial-react-js
A simple website written in React using Kentico Kontent. Serves as a basis for a React tutorial.
Stars: ✭ 14 (-68.89%)
Mutual labels:  headless-cms, kentico-kontent
Webiny Js
Enterprise open-source serverless CMS. Includes a headless CMS, page builder, form builder and file manager. Easy to customize and expand. Deploys to AWS.
Stars: ✭ 4,869 (+10720%)
Mutual labels:  spa, headless-cms
kontent-boilerplate-express-apollo
Kontent Boilerplate for development of Express application using Apollo server and GraphQL.
Stars: ✭ 21 (-53.33%)
Mutual labels:  headless-cms, kentico-kontent
prax
Experimental rendering library geared towards hybrid SSR+SPA apps. Focus on radical simplicity and performance. Tiny and dependency-free.
Stars: ✭ 18 (-60%)
Mutual labels:  spa
angolans-on-github
Software Developers based in Angola 🇦🇴
Stars: ✭ 18 (-60%)
Mutual labels:  spa
waltz
A general purpose web application that provides the interface between SCADA(s) system and the scientific users who define and calibrate their experiments
Stars: ✭ 17 (-62.22%)
Mutual labels:  spa
laravel-micro-spa-boilerplate
An "Advanced" SPA Boilerplate featuring a dark themed UI that's integrated with LaravelMicro.js, Vue.js, TailwindCSS & Laravel PHP Framework.
Stars: ✭ 23 (-48.89%)
Mutual labels:  spa
vuetube
Video resources that will help you to improve your Vue skills
Stars: ✭ 54 (+20%)
Mutual labels:  spa
spring-boot-react-blog
Token-based blog application using spring boot, react and jwt.
Stars: ✭ 132 (+193.33%)
Mutual labels:  spa
lagan
Lagan is a different take on a CMS, with a focus on flexibility. Built with Slim, Redbean and Twig.
Stars: ✭ 44 (-2.22%)
Mutual labels:  headless-cms
materialdrive
Google Drive with Angular Material
Stars: ✭ 43 (-4.44%)
Mutual labels:  spa
SvelteScaling
Does Svelte scale?
Stars: ✭ 21 (-53.33%)
Mutual labels:  spa
latelier
L'atelier, a project management tool
Stars: ✭ 74 (+64.44%)
Mutual labels:  spa
schema.tl
📜 Easy-to-use TL-Schema viewer
Stars: ✭ 55 (+22.22%)
Mutual labels:  spa
elm-news
All elm news in one place
Stars: ✭ 60 (+33.33%)
Mutual labels:  spa
Cofoundry.Samples.SPASite
A simple single page application using Cofoundry as a headless CMS
Stars: ✭ 30 (-33.33%)
Mutual labels:  spa
BlazorDemo
Demo application for my writings about Blazor
Stars: ✭ 79 (+75.56%)
Mutual labels:  spa
componentjs
ComponentJS -- Powerful run-time Component System for structuring HTML5-based Rich Clients
Stars: ✭ 83 (+84.44%)
Mutual labels:  spa

Kontent sample React single-page application

Netlify Status Live Demo Stack Overflow

This is a sample website written in Typescript utilizing the Kontent Delivery API to retrieve content from Kontent by Kentico. You can register your developer account at https://app.kontent.ai. For a brief walkthrough, check out Running the React sample app at Kontent Learn.

Application setup

  1. Install the latest version of NodeJS and npm. You can download both at https://nodejs.org/en/download/.
  2. Clone the sample application repository.
  3. Navigate to the root folder of the application in the command line.
  4. Type npm install to install required npm packages.
  5. Type npm start to start a development server.
  6. The application opens in your browser at http://localhost:3000.

Connecting to your sample project

At the first run of the app, you'll be presented with a configuration page. It will allow you to connect the app to your Kontent project or create a new one. You'll also be able to start a trial and convert to a free plan when the trial expires.

Alternatively, you can connect your project manually as per the chapter below.

Connecting to your project manually

If you want to change the source Kontent project, follow these steps:

  1. In Kontent, choose Project settings from the app menu.
  2. Under Development, choose API keys.
  3. Copy your Project ID.
  4. Open .env.example in the root directory.
  5. Replace your_project_id with your Project ID and remove REACT_APP_PREVIEW_API_KEY entry.
  6. Save and rename the file .env.

When you now run the sample application, the application retrieves content from your project.

Get creative

Deploy, explore and change the app directly in the browser.

Remix on Glitch

Deploy to Netlify

Previewing content from your project

If you already have a Kontent account and you want to connect the sample application to a project of your own, you need to provide your Project ID and your Preview API key to authorize requests to the Delivery Preview API. For example, you can connect the application to your modified version of the sample project.

To preview content in the sample application, follow these steps:

  1. In Kontent, choose Project settings from the app menu.
  2. Under Development, choose API keys.
  3. Copy your Project ID and Preview API key.
  4. Open .env.example in the root directory .
  5. Replace your_project_id and your_api_key with your Project ID and Preview API key.
  6. Save and rename the file .env.

When you now run the application, you will see all project content including the unpublished version of content items.

Content administration

  1. Navigate to https://app.kontent.ai in your browser.
  2. Sign in with your credentials.
  3. Manage content in the content administration interface of your sample project.

You can learn more about content editing in our tutorials at Kontent Learn.

Content delivery

You can retrieve content either through the Kontent Delivery SDKs or the Kontent Delivery API:

  • For published content, use https://deliver.kontent.ai/PROJECT_ID/items.
  • For unpublished content, use https://preview-deliver.kontent.ai/PROJECT_ID/items.

For more info about the API, see the API reference.

You can find the Delivery and other SDKs at https://github.com/Kentico.

Deployment

You can use eg. surge to deploy your app live. Check out the step-by-step guide on our blog.

Wall of Fame

We would like to express our thanks to the following people who contributed and made the project possible:

Would you like to become a hero too? Pick an issue and send us a pull request!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].