Skip to content

bdietrich/InfoMark

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The InfoMark application is based on:

  • RubyOnRails as a webframework
  • Resque for background processing of testing code submissions and zipping files for tutors
  • Redis for communications between the web-app and Resque
  • Docker for sandboxing the test environment of submissions

screenshot

Please refer to the infomark-worker repository.

Environment-Variables

To configure infomark we need to setup several environment variables:

  • INFOMARK_DATADIR, this is the actual place where the submissions and uploads are stored
  • INFOMARK_DOMAIN_NAME, will be the sender for outgoing mails
  • INFOMARK_MAIL_REGEX, we just allowed to register accounts using mails matching /\A[^@]+@(?:student\.|)uni-tuebingen.de/
  • SECRET_KEY, for running the devise-gem and pre-compile assets

HowTo Run - Locally

First clone this repository to your place by

user@host $ git clone https://github.com/cgtuebingen/InfoMark.git

This package is shipped with a docker-compose configuration which allows you to use this app locally. Warning: This local version inside docker-compose uses Webrick which is single-threaded and not for production! Please refer to our Capistrano file for zero-deploy via Capistrano.

To build everything locally just run

user@host $ cd InfoMark/server
user@host $ sudo docker-compose build
user@host $ sudo docker-compose run web rake db:create
user@host $ sudo docker-compose run web rake db:migrate
user@host $ sudo docker-compose run web rake db:seed

Now everything is ready

user@host $ sudo docker-compose up

Now open http://localhost:3000 your web-browser. You should see the login-area. By default we add an user with login-credentials:

email: root@root.com
passwd: toor

About

A online platform for distributing exercise sheets and testing exercise submission within Docker

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 49.5%
  • HTML 30.9%
  • CSS 13.1%
  • JavaScript 4.7%
  • CoffeeScript 1.6%
  • Gherkin 0.2%