Sunbird Admin Portal & Dashboard (V1.0) #623
poojakarma
started this conversation in
Contribution
Replies: 1 comment 9 replies
-
@poojakarma - thank you for sharing this contribution. We've always wanted someone from the community use the APIs to build and maintain the UI tools which can be of help to everyone in the community. Super glad to see this coming thru. Can we have a demo of this on 25th Sep? |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently Sunbird does not support tenant creation, user creation etc.. via ui. So we have started building a UI for putting together all such tasks to benefit the community. Sharing the repo with the details .
Name: Sunbird Admin Portal & Dashboard
Version: 1.0
Currently Implemented features :
Organisation Dashboard -> Shows Organisations, Number of sub-Organisation, Number of User and Roles/content Information
Display Shot:
Create and modify Organisation ,create Sub-Organisation
Display Shot:
Create User in Organization and sub-Organization, Edit Role of User , Block/unblock user
Display Shot:
User Dashboard -> Shows total users,and User list with filter feature
Display Shot:
Features in pipeline :
Install and Setup
1) Prerequisites
Angular CLI: 15.2.6
Node 14.21.3
Npm 6.14.18
Authkey and User token of the SB instance that you want to connect / perform the admin tasks
2) Steps to Install
Step 1: fork from https://github.com/tekdi/sunbird-admin-ui.git here
Step 2: create new fork
Step 3: open VS code , open terminal and enter below command
Step 4: git clone https://github.com/your_repo_name/sunbird-admin.git (fork Url)
Step 5 : cd sunbird-admin
Step 6: git remote add upstream https://github.com/tekdi/sunbird-admin-ui.git (main git Url)
Step 7: git checkout -b “admin-Dashboard”
Step 8: git fetch upstream main
Step 9: git pull upstream main
Step 10 : npm i
Step 11: paste below code in environment.ts file and set authKey and userToken
Path : src -> environments -> environment.ts
export const environment = { production: false, port: "http://localhost:4200/", instance: "https://your-sunbird-instance.com/", apiUrl: "https://your-sunbird-instance.com/api", target: "https://your-sunbird-instance.com", addOrgUrl: "api/org/v1/create", orgUrl: "api/org/v1/search", userUrl: "api/user/v1/search", userCreateUrl: "api/user/v3/create", userUpdateRoleUrl: "api/user/v1/role/assign", blockUserUrl: "api/user/v1/block", unblockUserUrl: "api/user/v1/block", authKey: "", userToken: "", "expires_in": 21600, "refresh_expires_in": 21600, "refresh_token": "", };
Step 12: set url in proxy.conf.js file
"target": "https://your-sunbird-instance.com/"
// The sb instance that you want connect to perform these tasks`
Step 13 Run the command ng serve from the project directory
Step 14 Open the browser and type http://localhost/:4200
3. Important Configuration files
Beta Was this translation helpful? Give feedback.
All reactions