Goal: build a quiz taking app, use json file as source for questions/answers
This project is based on TodoMVC - Try TodoMVC!
Features to build:
- an exam contains many entries
- entries contain a question and multiple choices and a correct answer
- UI will display one entry at a time
- can select a choice for each entry
- can navigate through entries in exam
- grade the exam, show number of correct/wrong
- source the exam from JSON file
- can reset the exam
- hints/clues/notes for each entry
- customize the UI/CSS for unique look
- http://mockingbox.com/elm-quiz/ , hit
"Reset"
to load an exam
Docker command with bind-mount to Current Working Directory:
-
docker run -it -v ${PWD}:/usr/src/app -p 8080:8080 kyledinh/elm:19 bash
-
Use Elm 19 to build -
/build.sh
orelm make src/Quiz.elm --output=elm.js
-
build.sh
haselm-format
andelm make
-
On host, open
index.html
in your browser!