GithubHelp home page GithubHelp logo

test-cms's Introduction

Netlify Status

netlify-cms-react-example

Edit netlify-cms-app Example

Process to create this example

Create the react app using create-react-app

$ git clone https://github.com/ADARTA/netlify-cms-react-example.git
$ cd netlify-cms-react-example
$ yarn start

Create the the development proxy for the backend api

$ yarn add netlify-cms-proxy-server --dev

src/setupProxy.js is recognized by the webpack setup in react-scripts, so we use the middleware script from netlify-cms-proxy-server/dist/middlewares/registerLocalFs to create the /api/v1 endpoint.

Note: this feature is available with [email protected] and higher.

src/setupProxy.js

const {
  registerLocalFs,
} = require("netlify-cms-proxy-server/dist/middlewares");

module.exports = function (app) {
  registerLocalFs(app);
};

Test the API endpoint by starting the development server using npm run start or yarn start. The proxy api will give you a message telling you the root and site path in the terminal. Browsing to http://localhost:3000/api/v1 will confirm the API is up and running by returning a json error object letting you know it is the root of the api.

Creating your custom CMS application

This starter can be the beginning custom CMS or we can use this as a test for an existing NetlifyCMS configuration. Just clone the repository or download.

$ yarn install
$ yarn start

Learn More

This project was bootstrapped with Create React App.

You can learn more in the Create React App documentation.

test-cms's People

Contributors

kirankumar15 avatar

Watchers

 avatar

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.