Code Monkey home page Code Monkey logo

sztos's People

Contributors

liquidlemon avatar marcinjurczak avatar

Watchers

 avatar  avatar

Forkers

marcinjurczak

sztos's Issues

CRUD for existing models

Course, Problem, TestCase - user (teacher) should be able to create, update and delete instances of these models.

Grading view

Privileged users should be able to prepare a summary for the purpose of grading. Such summaries should be available for each course, grouped by class.

Expand the grading logic

Grading should take into account whether the program finished in the required time.

It should also be possible to assign different weight to test cases within one solution.

Allow users to submit multiple files

Instead of using the single textarea in the solution submission form the users should instead have a way to upload multiple files from their filesystem. Those files should then be stored in object storage (MinIO).

Sandbox compilation and test runs

Compilation and test runs should be limited in terms of

  • execution time,
  • filesystem access,
  • resource limits,
  • network access.

The most robust solution we can easily achieve would use a combination of Docker containers and bubblewrap.

Navigation

User should be able to navigate through website, this includes login/logout and problem views.

Use Django forms

Django has a special abstraction for creating forms (both arbitrary and tied to specific models). When the number of forms in our application grows I'm sure this would simplify our codebase. I think we should use them wherever possible.

Forms in Django docs

This also means refactoring the existing code that deals with forms.

Add test cases to problems

Each problem should have at least one test case which contains input data and the expected output data.

User accounts

Multiple users should be able to use the platform. For the time being, we don't need to have any UI for signing up but we should have one for logging in. Each user should have their own, independently tracked, solutions.

Courses

Problems should be grouped into courses.

Multiple execution environments

The code should be organized in such a way that adding additional execution environments is easy. As a proof of concept make it possible to solve problems in both C++ and Python.

Create a user-friendly layout

After #22 is done we can start styling the website. The simplest way would be to use a CSS framework such as Bootstrap or Semantic UI (those two are just suggestions).

Unified submission view

Problem description and user submissions with their state should be grouped in a single view. Neither takes up much space (we will have a separate view to display full solution sources in the future) and it simplifies the user experience.

Process solutions in a worker

When a solution is submitted a task should be launched which will check whether it's valid (e.g. checking whether it's the same as the length of the problem description as a PoC). It's state and validity should then be updated in the DB.

Save test runs

After performing a single test the results (stdout, stderr, time, exit code) should be saved to the database.

Update solution state in UI

While solution is being processed the UI should reflect that and periodically poll the server for changes. This should be done on a per test case basis.

Solution sources

Show solution sources in a dedicated view. It should also be possible to download an archive containing all the sources.

Account management

Privileged users (e.g. teaching assistants) should be able to modify unprivileged accounts through a special interface. This interface should allow them to modify the account passwords as well as assign users to classes. Each class should have its own list of available courses.

Breadcrumbs

Adding breadcrumbs would be a good way to make navigation easier

Allow users to submit solutions

Users should be able to submit solutions to existing problems. For the time being the solution can be just arbitrary text, we'll use it for character count or something similar in the PoC.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.