Skip to content

wethinkcode/student_scrips

 
 

Repository files navigation

Contributors Forks Stargazers


Logo

Student Scripts

This repo includes scripts for wtc-lms

· Report Bug · Request Feature .

Table of Contents

  1. About The Project
  2. Getting Started
  3. Contributors
  4. TODO-List

About The Projects

These projects are all built by WeThinkCode Students. Currently LMS is built to run on unix operating systems running a GNOME desktop environment. So for the requirement of LMS, you can't expect the script to work if you don't meet those requirements.

Built With

Getting Started

install_wtc_lms.sh

WSL:

  1. Clone repository
git clone https://github.com/wethinkcode/student_scrips ~/wtc-scripts
  1. Change to the directory the repo is now stored.
cd ~/wtc-scripts
  1. Run script with bash.

    Do not run the script as root (i.e. with sudo)

bash ./install_wtc_lms

Linux:

  1. Clone repository
git clone https://github.com/wethinkcode/student_scrips ~/wtc-scripts
  1. Change to the directory the repo is now stored.
cd ~/wtc-scripts
  1. Run script with bash.

    Do not run the script as root (i.e. with sudo)

bash ./install_wtc_lms

update_review_details.sh:

run setup.sh before use of these scripts

  • Go to cd ~/.
  • run ./update_reviews_info.sh
    YOU DON'T NEED TO RUN THIS IF YOU DON'T WANT IT. IT'S JUST USED TO HAVE AN EASY WAY TO ACCESS USERNAMES AND HASHES IN ONE PLACE
    NOTE: THIS TAKES A WHILE SO RUN IT IN A SEPERATE WINDOW
    THIS PUTS OUT THE OUTPUT OF ALL review_details COMMANDS IN A FILE FOR EASY ACCESS TO USERNAMES AND HASHES MIGHT BECOME OBSOLETE IF UNCLE WOLF IMPLEMENTS THE --oneline FEATURE (ಥ﹏ಥ)

do_review.sh(the useful one):

  • Open a seperate terminal.
  • Run ./do_review.sh
  • Give reviewee username (This does nothing, yet, if you didn't run the update_review_details.sh)
  • Give hash for example 0ecf910e-94a2-4b4d-a3d2-7cdace88c069
  • Chrome is now opened with the review guidelines page.
  • It now prompts to sync the folder. Only do this right before the review.
  • VS Code is now opened at the synced directory.
  • At this time you will probably do the actual review
    so tab away from the terminal you ran this in.
  • When you're done with the review return to this terminal
    where you basically need to type in your comment and then grade
    which will then be automatically posted.
  • After all that the repo is deleted as it would no longer be needed.

all_project_history.sh(extra):

  • Open a seperate terminal.
  • Run ./all_project_history.sh
  • For those that want to see all of their project history for semester 1

view_reviews.sh(on available reviews):

  • Open a seperate terminal.
  • Run ./view_reviews.sh -p "FizzBuzz" -n 2 -a
  • the -n flag is optional to change the amount of reviews you will see, default is 3
  • the -a flag is also optional and instead of showing you the reviews it will ACCEPT them (use with or without the n flag)
  • It is to view available reviews.
  • BEWARE: the -a flag WILL ACCEPT reviews. DO NOT use the -a flag if you just want to view reviews.
  • Otherwise you can run ./view_reviews -u "username"
  • To view the reviews you have been assigned for that user.
  • Use at own risk. If you mess up your number of accepted reviews, that's on you,

Contributors

Here are the contributors LinkedIns

Kellan Stevens

Rulof van der Merwe

TODO List

  • Install LMS Script:

    . Fix WSL error when there is a space seperating a 2 worded username

    . Get script to run properly on bare linux

    . Get script to run and cleanup multiple install locations of lms (i.e. wtc-lms being stored in /usr/local/bin, /usr/bin, etc)

    . Get script to work with different WSL mount points

    . More to be expected

About

Some scripts I wrote to help me.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%