Skip to content

casdoor/casdoor-raw-js-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

casdoor-raw-js-example


This is an example on how to use casdoor-js-sdk without framework. We will show you the steps below.

What you need prepare

The Casdoor should be deployed.

​ You can refer to the Casdoor official documentation for the install guide . Deploy the casdoor instance in production mode.

​ After a successful deployment, you need to ensure:

  • Open your favorite browser and visit http://localhost:8000 , you can see the login page of Casdoor.
  • Input admin and 123 to test login functionality is working fine

Start

get this example

# by ssh 
git clone [email protected]:casdoor/casdoor-raw-js-example.git
# by https
git clone https://github.com/casdoor/casdoor-spring-boot-example.git

use it

# enter the example in your file directory 
cd casdoor-raw-js-example
# enter the src directory and install the package
cd src
npm install 
# run the server
npm start

If there is no problem in above steps , you can see the terminal console : server listen at http://localhost:5000

You can press Ctrl+C and click this link , or input it to your browser.

Finally, it runs in your browser look like below gif represented.

screenshot