Skip to main content


The source code for Casdoor's frontend is located inside the /web folder:

It is a Create-React-App (CRA) project, which follows the classic CRA folder structure as outlined below:

publicThe root HTML file for React
srcSource code
craco.config.jsThe Craco configuration file. You can change the theme color (blue by default) here
crowdin.ymlCrowdin i18n configuration file
package.jsonNPM/Yarn dependency file
yarn.lockYarn lock file

Inside the /src directory, you will find several important files and folders:

accountThe "My profile" page for logged-in users
authAll code related to authentication, such as OAuth, SAML, sign up page, sign in page, forget password page, etc.
backendThe SDK for calling the Go backend API. It contains all the fetch() calls
basicThe homepage (dashboard page) for Casdoor, which contains several card widgets
commonShared UI widgets
localesi18n translation files in JSON, synced with our Crowdin project:
App.jsThe entry JS file containing all the routes
Setting.jsUtility functions used by other code
OrganizationListPage.jsThe page for the organization list, similar to all other XXXListPage.js files
OrganizationEditPage.jsThe page for editing one organization, similar to all other XXXEditPage.js files