Schoco
Online IDE for learning Java programming at school, including automatic JUnit tests. Designed to give coding homework/assignments.
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-backendandphitux/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:
- Install
dockeranddocker-compose. - 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. - Before starting the containers, create the
datadirectory. It must be owned by this new user, not by root. - Configure an Nginx or Apache reverse proxy, and handle WebSocket forwarding for the
/containerspath separately. - Edit
docker-compose.ymlas 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 rundocker compose up -d. - On first startup, use
docker execto 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_KEYpassphrase, 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
Discover more
Helium
Django backend for Helium - Student Planner
INGInious
Intelligent grader that allows secured and automated testing of code made by students.
RELATE
RELATE is a web-based courseware package, includes features such as: flexible rules, statistics, multi-course support, class calendar.
scholarsome
Web-based and open source interactive flashcard learning software studying for the masses.
1time
Zero-knowledge one-time secret sharing. End-to-end encrypted, self-hosted, open source.
4ga Boards
Straightforward realtime kanban boards management for intuitive task tracking. Featuring an elegant dark mode, collapsible todo lists, and multitasking tools to supercharge your team's productivity.