Sign inSign up

cfreak/code-freak

By cfreak

•Updated over 6 years ago

WARNING: Legacy Image! Use cfreak/codefreak instead!

Image
0

2.8K

cfreak/code-freak repository overview

⁠WARNING: Legacy Image! Use cfreak/codefreak instead!

⁠Code FREAK
╰ Code Feedback, Review & Evaluation Kit

Build Status Coverage Status Known Vulnerabilities Docker Image License: AGPL v3

Code FREAK is an online IDE for educational purposes that allows teachers to create and enroll programming tasks allows students to programm and execute their code without leaving the browser. Submissions can be evaluated automatically by various testing-methods like unit tests or code smell detection.

⁠⚠️ WORK IN PROGRESS ⚠️

Code FREAK is currently under heavy development. This means things can break without any further notice. Please keep this in mind when testing the application.

⁠Development environment setup

Create a file src/main/resources/application-dev.properties. For documentation on how to configure the server see application.properties⁠ in the same directory. Minimum configuration that uses the in-memory database:

spring.jpa.database=HSQL
spring.jpa.hibernate.ddl-auto=create
⁠Database

You can either use the embedded HSQL storage or a PostgreSQL database. Data from the HSQL database will get lost when the application shuts down. For Postgres create at least a dedicated database and adjust the configuration accordingly:

spring.datasource.url=jdbc:postgresql://host:port/database
spring.datasource.username=user
spring.datasource.pasword=supersecure
spring.datasource.driver-class-name=org.postgresql.Driver
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
spring.jpa.hibernate.ddl-auto=update
⁠Docker

For many parts of the application we need connection to a (dedicated) Docker daemon. By default the socket at /var/run/docker.sock will be tried. If you are on Linux please follow the installation guidelines for your distribution. For Windows, MacOS and other OS that cannot run Docker natively you will either need the official Docker for Windows/MacOS software stacks or use the Vagrant machine that is included in this repository. The Vagrant machine will make the Docker daemon available at 127.0.0.1:2375 (the official Docker port). If you setup Docker for Windows/MacOS the Daemon should be reachable on the same address. So if you are on Windows or MacOS adjust your application-dev.properties file so it points at a Docker daemon.

code-freak.docker.host = tcp://127.0.0.1:2375
⁠Run

Run the command ./gradlew bootRun. The application is started at http://localhost:8080.

⁠Fix linting issues
$ ./gradlew spotlessApply

⁠License

Code FREAK | Code Feedback Review & Evaluation Kit
Copyright (C) 2019 Kiel University of Applied Sciences

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

Tag summary

Content type

Image

Digest

Size

175.7 MB

Last updated

almost 7 years ago

docker pull cfreak/code-freak