Skip to content
This repository was archived by the owner on Apr 18, 2019. It is now read-only.

Commit a7bde79

Browse files
authored
Update README.md
1 parent 0ce6e13 commit a7bde79

File tree

1 file changed

+43
-2
lines changed

1 file changed

+43
-2
lines changed

README.md

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,45 @@
1+
The InfoMark application is based on:
2+
* RubyOnRails as a webframework
3+
* Resque for background processing of testing code submissions and zipping files for tutors
4+
* Redis for communications between the web-app and Resque
5+
* Docker for sandboxing the test environment of submissions
16

2-
### Installing Ruby
7+
![screenshot](https://cgtuebingen.github.io/InfoMark/assets/img/profile.PNG)
38

4-
see wiki
9+
Please refer to the infomark-worker repository.
10+
11+
Environment-Variables
12+
-----------------------
13+
14+
To configure infomark we need to setup several environment variables:
15+
16+
* INFOMARK_DATADIR, this is the actual place where the submissions and uploads are stored
17+
* INFOMARK_DOMAIN_NAME, will be the sender for outgoing mails
18+
* INFOMARK_MAIL_REGEX, we just allowed to register accounts using mails matching
19+
`/\A[^@]+@(?:student\.|)uni-tuebingen.de/`
20+
* SECRET_KEY, for running the devise-gem and pre-compile assets
21+
22+
HowTo Run - Locally
23+
-----------------------
24+
25+
First clone this repository to your place by
26+
27+
git clone https://github.com/cgtuebingen/InfoMark.git
28+
29+
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.
30+
31+
To build everything locally just run
32+
33+
cd InfoMark
34+
docker-compose build
35+
docker-compose up
36+
37+
Before open your browser you need to create the database. Therefore open **another** terminal in the **same** directoy and paste
38+
39+
docker-compose run web rake db:create
40+
docker-compose run web rake db:migrate
41+
42+
Now open http://localhost:3000 your web-browser. You should see the login-area. By default we add an user with login-credentials:
43+
44+
45+
passwd: toor

0 commit comments

Comments
 (0)