Skip to content

marcin-filipiak/cpp_studentmachine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STUDENT MACHINE

The "STUDENT MACHINE" program is a tool written in C++ that provides a simple interface for users to manage a programming project on GitHub. Student need to work own github account and repository "student_projects".

Here's an overview of the program's functionality from the user's perspective:

To run the program, follow these steps:

  • Open a terminal.
  • Navigate to the directory where the studentmachine executable is located.
  • Run the program by typing the following command and providing a parameter:

./studentmachine [command]

Replace [command] with one of the command.

For example, to install the required tools, you would run:

./studentmachine install

Installation and System Setup

Command: install

Functionality: Installs necessary software packages, updates the application to the latest version, and potentially configures Apache and MySQL paths.

Version Checking and Updating

Command: update

Functionality: Checks and updates the application to the latest version from a specified GitHub repository.

System Initialization and Configuration

Command: systemup

Functionality:

  • Clears existing student projects and system history.
  • Optionally registers GitHub credentials (login and email).
  • Downloads and registers SSH keys from a specified keyring.
  • Configures Git with the provided GitHub login and email.
  • Clones the GitHub repository for student projects.

Saving Work to Repository

Command: savework

Functionality:

  • Loads GitHub login and email from configuration files.
  • Commits changes to the local Git repository in student_projects.
  • Pushes changes to the GitHub repository.

Template Download and Configuration

Command: templates

Functionality: Downloads project templates, runs a script to configure the workspace according to the template, and creates symbolic links.

Exercise Download and Configuration

Command: exercise [exercise_name]

Functionality: Downloads a specific exercise, extracts it, runs a script to configure the exercise, and cleans up after the configuration.

System Shutdown

Command: systemdown

Functionality:

  • Loads GitHub login and email from configuration files.
  • Commits changes to the local Git repository in student_projects.
  • Optionally pushes changes to the GitHub repository.
  • Cleans up SSH keys.
  • Shuts down the machine.ation files.
  • Commits changes to the local Git repository in student_projects.
  • Pushes changes to the GitHub repository.

LINKS

Virtual Machine for VirtualBox 7.0, Ubuntu with integrated StudentMachine https://drive.google.com/file/d/1skiiDTzoESxlegl_sN3R9fHocykbgLUZ/view?usp=sharing

Official keyring server for StudentMachine where you can find your public key (need to import in Github) http://api.noweenergie.org/application/StudentMachine/keyring/

Fork for NixOS: https://github.com/theKapcioszek/cpp_studentmachine-nix

About

App for Ubuntu at school, system autoconfiguration and syncing student work with his github

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published