Giter Site home page Giter Site logo

mmtdigital / kentico-cloud-universal-react Goto Github PK

View Code? Open in Web Editor NEW
7.0 5.0 2.0 17 KB

A very simple boilerplate to render data from Kentico Cloud to both the server and the client, using React components

License: MIT License

CSS 15.89% JavaScript 79.31% HTML 4.80%
kentico-cloud react kentico react-components boilerplate

kentico-cloud-universal-react's Introduction

Kentico Cloud React Starter

Whut?

A very simple boilerplate to render data from Kentico Cloud to both the server and the client, using React components

Note: Currently, this is client-side only! The next step would be to SSR this baby, which is totally do-able using this environment. I just don't have time right now to sort it. Feel free to chip in if you do

We're now rendering server-side first :)

How to run

  • Install latest node
  • Pull the repo
  • npm i
  • npm start
  • Head to localhost:3000

How to configure

  • Head to https://kenticocloud.com
  • Sign up for a free trial
  • Once you're set up, and logged into your Kentico Cloud site, click the Kentico logo in the top left hand corner and click "Development"
  • Copy the "Project ID"
  • Replace the Project ID in src/config/default.json with yours:
{
	"projectId": "your-project-id-here",
	"previewAPIKey": "your-preview-api-key-here"
}

You should now see some data on localhost:3000. If you don't, here is what might have happened:

  • You pasted the Project ID wrong
  • Kentico have changed their base project and the fields have changed. Try inspecting the data
  • React doesn't like a field. Check the console.
  • Slack me @js, or open an issue

TODO:

  • Render the content on the server, first
  • Look into the various content-specific endpoints Kentico provides
  • Look at hooking up a view model/an action -> store configuration, for easier data management
  • Add nodemon

Resources

Contributing

  • Pull requests very welcome

kentico-cloud-universal-react's People

Contributors

jpsear avatar juraju-kentico avatar tjramage avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

kentico-cloud-universal-react's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.