Skip to content

starius/kodomoquiz

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
ru
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Python, Lua and C quiz application written in Lapis

http://kodomoquiz.tk

Dependencies

  • postgres or mysql
  • openresty
  • lapis
  • lua module "date" (from luarocks)
  • lua module "mo" (from luarocks)
  • lua module "yaml" (from luarocks)

Как добавить свой тест

В этой инструкции будем новый тест называть testName

Идентификаторы тестов, вопросов и т.п. должны быть человеческими: без пробелов, русских букв и всякого такого.

  • Склонировать репозиторий: git clone https://github.com/starius/kodomoquiz
  • cd kodomoquiz
  • сделать файл quiz/testName.yml с тестом. Пример и краткое описание формата см. в файле quiz/test2.yml
  • проверить файл на валидность синтаксиса YAML.
  • добавить имя теста в соответствующее место файла quiz/groups.yml. Например, в секцию Bioinf. См. пример ниже.
  • уведомить гит о новом файле: git add quiz/testName.yml
  • сделать коммит: git commit quiz/groups.yml quiz/testName.yml -m 'new quiz testName'
  • отправить коммит на гитхаб: git push
  • зайти на http://kodomoquiz.tk/ и нажать кнопку "Update code"
  • открыть URL http://kodomoquiz.tk/schema
  • зайти в http://kodomoquiz.tk/admin/quiz-state поставить галочку напротив нового теста и нажать кнопку Update
  • добавить колонки quiz.testName и следующую за ней deadline в ведомость
  • протестировать quiz пару раз и убедиться, что оценки "прилетают" в ведомость
 - Bioinf:
   - bioinf1
   - count_oligs
   - testName

About

Python quiz application written in Lapis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages