Skip to content

casdoor/casdoor-react-only-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

casdoor-react-only-example

A frontend-only example based on React and casdoor-js-sdk.

demo.mp4

Installation:

First, clone the repository:

git clone https://github.com/casdoor/casdoor-react-only-example

Then, fetch the dependency:

yarn install

Next, you need to configure 5 parameters in: https://github.com/casdoor/casdoor-react-only-example/blob/master/src/Setting.js

const sdkConfig = {
  serverUrl: "https://door.casdoor.com", // Casdoor server url
  clientId: "294b09fbc17f95daf2fe",
  organizationName: "casbin",
  appName: "app-vue-python-example",
  redirectPath: "/callback", // your app callback path
};

Start the application

yarn start