Skip to content

EdgeCrafters/ejp-s

Repository files navigation

EJP-S: Edged Judger Platform for Students 🌱

EJP-S is a specialized component of the Edged Judger Platform (EJP) designed to empower students in the realm of coding education. Seamlessly integrated with the EJP ecosystem, EJP-S enables students to get assignments, submit their answers, ans even manage their groups.

Table of Contents

Highlights 🌟

  • Get Repositories: Get your information of remote repositories.

  • Test Code: Test your code with your executable file.

  • Submit Answer: Submit answer.

Gettting Started 📚

Prerequisites

  • Ensure the the main EJP system set up and running

  • Requires Linux OS (Windows & Mac support coming soon)

Installation

  1. Clone the EJP-S repository.

        git clone https://github.com/EdgeCrafters/ejp-s.git
    
  2. Navaigate to the cloned directory and run the installation script.

        cd ejp-s && chmod 755 scripts/setup.sh && chmod 755 scripts/install.sh
        ./scripts/setup.sh && ./scripts/install.sh
        source ~/.bashrc
        # source ~/.zshrc (if you use zsh, or whatever, customize this command)
    
  3. Follow the on-screen prompts to complete the installation.

Usage

  1. Launch EJP-S from the command line:

        ejp-s [category] [command] [options]
    

    Parameters
    • [category]: The category to which the command belongs (e.g., repo, problem).
    • [command]: The specific action you want to perform (e.g., show, get, submit, test, testcase).
    • [options]: Additional parameters or flags that modify the command. (e.g., -h(host), -l(location)). See below for more information about parameters.
  2. Use the menu options to get information of remote repositories, submit your answers, or sync with EJP-T, and EJP-BE.

  3. For a list of specified available commands and options, use:

        ejp-s [category]
    



Contributing 🤝

We welcome contributions from the community! Feel free to fork the repository, make your changes, and submit a pull request. For more details, check out our contribution guidelines.

License 📄

EJP-S is part of the EJP project and follows the same MIT license.

Details

repo

You can controll information of your repositories.

    ejp-s repo [command] [options]

[command]

  1. show: see information of your repositories.

    • -h: url of server

        ejp-s repo show -h [host address]
    
        ejp-s repo show -h localhost:8000
    

  1. get: get information of your repositories.

    • -h: url of server

        ejp-s repo get -h [host address]
    
        ejp-s repo get -h localhost:8000
    

  1. clean: clean information of your repositories that saved local directory.

        ejp-s repo clean
    

problem

You can submit and test your answer.
You can show testcases that opened or hidden.

    ejp-s problem [command] [options]

[command]

  1. show: see information of problems.

        ejp-s problem show
    

  1. submit: submit your answer.

    • -h: url of server.
    • -l: path to answer file. (compiled file)

        ejp-s problem submit -h [host address] -l [path to answer file]
    
        ejp-s problem submit -h localhost:8000 -l /myAnswers/answer1
    

  1. test: test your answer with testcase that published by your instructor.

    • -l: path to answer file. (compiled file)

        ejp-s problem test -l [path to answer file]
    
        ejp-s problem test /myAnswers/answer1
    

  1. testcase: see information for testcases.

        ejp-s problem testcase
    

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages