Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 594 Bytes

README.md

File metadata and controls

32 lines (23 loc) · 594 Bytes

Deploy

  1. copy config-template.yaml to config.yaml
  2. change sensitive info. in config.yaml
  3. run the following code in terminal.
npm dep-install
npm build:ui
npm build:server
npm start

Add User

npm run cli -- DI.models.User.createUserAsync {username} {password} {student_id} {real_name} {role}

Roles can be: admin / mod / student

Reset User Password

npm run cli -- DI.models.User.setUserPasswordAsync {username} {new_password}

Update User Role

npm run cli -- DI.models.User.setUserRoleAsync {username} {new_role}