Skip to content

Commit 3694d70

Browse files
committed
Added how to use instruction
1 parent 4b9781f commit 3694d70

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,36 @@
66
Каждый алгоритм, размещаемый в системе, проверяется на компилируемость и прохождение тестов, заданных пользователем. Если все тесты прошли, то пользователь может указать уровень доступа к алгоритму – открытый или требующий платы. Перед покупкой алгоритма, пользователь должен иметь возможность протестировать алгоритм на своих данных.
77
Пользователи системы должны иметь возможность поиска алгоритма и его покупки.
88

9+
10+
## How to use:
11+
Was tested on windows 8.1. Install the following software:
12+
install python 2.* (https://www.python.org/) Python 3.0 isn't supported!
13+
install django 1.7 version. Latest versions are not supported!
14+
pip install Django==1.7 (https://docs.djangoproject.com/en/1.9/howto/windows/)
15+
install git bash
16+
install Google Chrome (we don't promise correct behavior for other browsers)
17+
18+
open git bash (terminal) and get sources from github:
19+
$ mkdir -p ~/Document/GitHub/
20+
$ cd ~/Document/GitHub/
21+
$ git clone https://github.com/ljaljushkin/Web-server-of-the-algorithms
22+
23+
set path to the working dir and path to compilers in config.cfg (server_project\server\config.cfg)
24+
workdir # working directory (to compile/run/test algorithms from here)
25+
cpp_path # full path to C++ compiler
26+
cs_path # full path to C# compiler
27+
fp_path # full path to Free Pascal compiler
28+
29+
go to folder with manage.py
30+
$ cd Web-server-of-the-algorithms/server_project/server/
31+
migrate data base. File server_project\server\db.sqlite3 should be created.
32+
$ python manage.py migrate
33+
run server
34+
$ python manage.py runserver
35+
open browser and go to:
36+
http://127.0.0.1:8000/algorithms/index.html
37+
38+
admin mode is also available.
39+
http://127.0.0.1:8000/admin
40+
to creare admin account:
41+
$ winpty python manage.py createsuperuser

0 commit comments

Comments
 (0)