# casdoor-uniapp-example **Repository Path**: hotelec/casdoor-uniapp-example ## Basic Information - **Project Name**: casdoor-uniapp-example - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-04-07 - **Last Updated**: 2024-04-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

Casdoor Uniapp SDK Example

## Quick Start - download the code ```shell git clone https://github.com/casdoor/casdoor-uniapp-example cd casdoor-uniapp-example ``` - install dependencies ```shell yarn install ``` - run ```shell yarn serve ``` After running, you will see the following two interface: ## Configure Now open `./src/main.js` file and you can see the following code: ```js import App from './App' // #ifndef VUE3 import Vue from 'vue' import Sdk from 'casdoor-uniapp-sdk' Vue.config.productionTip = false Vue.use(Sdk, { serverUrl: "https://door.casdoor.com", //casdoor server url clientId: "014ae4bd048734ca2dea", organizationName: "casbin", appName: "app-casnode", redirectPath: "/callback", }) App.mpType = 'app' const app = new Vue({ ...App }) app.$mount() ``` The meanings of some fields are explained as follows: | Name (in order) | Must | Description | |------------------|------|------------------------------------------------------------------------------------------------| | serverUrl | Yes | your Casdoor server URL | | clientId | Yes | the Client ID of your Casdoor application | | appName | Yes | the name of your Casdoor application | | organizationName | Yes | the name of the Casdoor organization connected with your Casdoor application | | redirectPath | No | the path of the redirect URL for your Casdoor application, will be `/callback` if not provided |