Back to services

Schoco

Online IDE for learning Java programming at school, including automatic JUnit tests. Designed to give coding homework/assignments.

View alternatives to Schoco
Suggest edit
Open source
Self-hostable
MIT
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Introduction

Schoco, short for SCHool Online COding, is a web-based Java programming IDE that supports Java 8. It is designed specifically for teaching programming in schools, for use by teachers and students both in class and at home.

It used to be hard to assign programming homework to students: you can't expect every student to have set up a development environment at home, and submitting and checking assignments is a hassle. Schoco is built mainly to solve this problem. Teachers can create programming assignments and check them automatically with JUnit tests. Everything is done online, so neither teachers nor students need to install a JRE or any other software locally.

The project was inspired by codeboard.io. Codeboard has not been updated since the end of 2015, so the author built a similar tool tailored to the actual needs of teaching in schools. The project states explicitly that Schoco is not suitable for professional software development.

Key Features

  • Web-based Java IDE: Supports Java 8, and most regular Java features work. For security reasons, the Java security manager restricts a few operations, such as graphical interfaces, writing to disk, and network access.
  • Projects and assignments: Every user can create private projects. Teachers can turn their own projects into assignments, which can then be edited by the students of a specified course.
  • Complete assignments online: Students log in and see their assignments right away. Writing, compiling, running and testing are all done in the browser.
  • Automatic JUnit testing: Teachers can see each student's latest test results directly, shown as the percentage of tests passed.
  • Classroom presentation: With one click, a teacher can open a student's solution to show or compare it on a projector, with no need to exchange files.
  • Publishing solutions: Once a set start date is reached, students can view the teacher's reference solution and compare it with their own.
  • Privacy and plagiarism protection: Students can only open their own projects and assignments and cannot see their classmates' solutions.
  • Multilingual interface: English and German are supported, and other languages are easy to add.

Target Users and Use Cases

  • Teachers of IT or computer science courses in secondary and vocational schools
  • Students learning Java programming
  • School computer labs that need a uniform programming environment without configuring development tools on every machine

Technical Architecture

  • The backend API is built on Python FastAPI
  • Code is stored in a built-in Gitea instance
  • Java code is compiled and run in Docker containers, and the number of worker containers is configurable
  • Distributed as Docker images: phitux/schoco-backend and phitux/schoco-frontend

Deployment

The deployment involves a few more steps than a typical Docker service, but it is not complicated overall and can be done in a few minutes:

  1. Install docker and docker-compose.
  2. It is strongly recommended to create a dedicated user (for example sudo adduser --no-create-home schoco) and add it to the docker group. This is because Schoco limits the number of processes with nproc to prevent fork bombs (soft limit 3700, hard limit 5000), and a dedicated user avoids affecting other programs.
  3. Before starting the containers, create the data directory. It must be owned by this new user, not by root.
  4. Configure an Nginx or Apache reverse proxy, and handle WebSocket forwarding for the /containers path separately.
  5. Edit docker-compose.yml as needed. It includes three services: backend, frontend and gitea. The main environment variables are: FULL_DATA_PATH, MAX_CONTAINERS (the number of Java worker containers, recommended to be about 1.5 times the number of CPU cores), SECRET_KEY, TEACHER_KEY (the passphrase for registering teacher accounts), and the Gitea-related settings. Then run docker compose up -d.
  6. On first startup, use docker exec to create an admin user in the Gitea container.

Notable Points

  • Released under the MIT open-source license and fully self-hostable, so student data stays on the school's own server
  • Teacher accounts must be registered with the TEACHER_KEY passphrase, which makes it easy to separate teacher and student permissions
  • Supports only Java 8, with a focus on teaching rather than professional development
  • For more information, see the project's GitHub Wiki and FAQ