{"id":20215684,"url":"https://github.com/casdoor/casdoor-raw-js-example","last_synced_at":"2026-04-01T21:49:54.157Z","repository":{"id":104354134,"uuid":"493716535","full_name":"casdoor/casdoor-raw-js-example","owner":"casdoor","description":"Casdoor example for vanilla HTML + JS +CSS websites","archived":false,"fork":false,"pushed_at":"2023-11-24T08:13:21.000Z","size":250,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-03-27T13:42:40.035Z","etag":null,"topics":["auth","casbin","casdoor","css","example","html","js","oauth","oidc","sdk","sso","vanilla"],"latest_commit_sha":null,"homepage":"https://github.com/casdoor/casdoor-js-sdk","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/casdoor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-05-18T15:16:25.000Z","updated_at":"2025-03-17T13:10:04.000Z","dependencies_parsed_at":"2024-01-29T00:03:08.640Z","dependency_job_id":null,"html_url":"https://github.com/casdoor/casdoor-raw-js-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/casdoor/casdoor-raw-js-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fcasdoor-raw-js-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fcasdoor-raw-js-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fcasdoor-raw-js-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fcasdoor-raw-js-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/casdoor","download_url":"https://codeload.github.com/casdoor/casdoor-raw-js-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fcasdoor-raw-js-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31046837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T09:35:52.079Z","status":"ssl_error","status_checked_at":"2026-03-27T09:35:20.916Z","response_time":164,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["auth","casbin","casdoor","css","example","html","js","oauth","oidc","sdk","sso","vanilla"],"created_at":"2024-11-14T06:23:59.094Z","updated_at":"2026-04-01T21:49:54.134Z","avatar_url":"https://github.com/casdoor.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# casdoor-raw-js-example\n\n---\n\nThis is an example on how to use `casdoor-js-sdk` without framework. We will show you the steps below.\n\n## What you need prepare\n\n \tThe Casdoor should be deployed.\n\n​\t You can refer to the Casdoor official documentation for the [install guide](https://casdoor.org/docs/basic/server-installation) . Deploy the casdoor instance in **production mode**.\n\n​      After a successful deployment, you need to ensure:\n\n- Open your favorite browser and visit http://localhost:8000 , you can see the login page of Casdoor.\n- Input `admin` and `123` to test login functionality is working fine\n\n## Start\n\n### get this example\n\n``` shell\n# by ssh \ngit clone git@github.com:casdoor/casdoor-raw-js-example.git\n# by https\ngit clone https://github.com/casdoor/casdoor-spring-boot-example.git\n```\n\n### use it \n\n```shell\n# enter the example in your file directory \ncd casdoor-raw-js-example\n# enter the src directory and install the package\ncd src\nnpm install \n# run the server\nnpm start\n```\n\nIf there is no problem in above steps , you can see the terminal console : ` server listen at http://localhost:5000` \n\nYou can press `Ctrl+C` and click this link , or input it to your browser. \n\nFinally, it runs in your browser look like below gif represented.\n\n![screenshot](screenshot.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasdoor%2Fcasdoor-raw-js-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcasdoor%2Fcasdoor-raw-js-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasdoor%2Fcasdoor-raw-js-example/lists"}