Skip to content

mhevyk/pure-js-quiz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quiz-game

Table of Contents


Demo

Here is a working live demo: https://mhevyk.github.io/pure-js-quiz/

Project Image


Description

Quiz-game is a simple app for studying foreign languages. It allows us to fill in a vocabulary with words and study them, completing quizes and analysing their results.

Key technologies

  • HTML5
  • CSS3
  • JS ES6+
  • Webpack
  • Eslint

Additional libraries

Back To The Top


Installation

  1. Clone the repo
    git clone https://github.com/mhevyk/pure-js-quiz.git
  2. Install NPM packages
    npm install
  3. Build the project
    npm run build
  4. Run file public/index.html using web browser

Back To The Top


How to use

Adding record

Records should follow these rules:

  • word must be unique
  • word can`t contain a comma symbol
  • translation can`t contain a comma symbol
  • word and translation of a single record should not be equal
  • translations of a single record should not be equal

If a word appears multiple times, it`s translations will be added to existing record's translations

Import records

We can add multiple records using text file. To import file correctly follow these steps:

  1. Select the group to which you want to add new words. If group doesn`t exist, create it.
  2. Select symbol, which separates word and translations in your file. App supports separators :, > and =.
  3. Import text file, which has a content, that corresponds the following syntax:
word1 <separator> translation1, translation2, ...
word2 <separator> translation1

Text file content should also correspond adding record rules. Spaces between word, separator and translations doesn't matter. We use a <separator> to separate word from translation and to separate records we need to write them from a new line.

Example of correct text file content with separator >:

apple > яблуко, яблучний
pine > груша
  1. Open uploaded file toggler and check if file loading was succesfull File upload example

  2. Submit form to add records to your vocabulary.

Back To The Top