2.0.2-0 • Published 3 years ago
@holeinonestudios/quiz-app v2.0.2-0
![]()
Quiz Server
Table of Contents
Badges
Getting Started
Manual
- Download and extract the repository
- Install Node.js. Search, download and install.
- run
npm installin a terminal for the project directory - run
npm install --save-devin a terminal for the project directory - Testing
- Edit file
.envand change HOST line to:HOST=’localhost’ - npm run dev
- NOTE: May need to clear cookie history for localhost. Click on (i) next to localhost and clear the one cookie.
Ctrl-Cto stop program
- Edit file
- Build and Run Locally
npm run build- Copy
.envfile from root intodistdirectory- Remove
NODE_ENV=0line. - Edit
FILE_PATHto:FILE_PATH='data.xlsx'
- Remove
- In dist directory command prompt:
./quiz-app-win.exeDot-slash is required! - In web browser, browse to
localhost.
- Running on LAN
- Determine IP address of machine to be used as server. IPV4 version.
- Replace the
HOSTwith the IP address from step 1. - In dist directory command prompt:
./quiz-app-win.exeDot-slash is required! Be sure your computer allows the connection - In a web browser, browse the the IP fom step 1.
Data
Each sheet in a workbook is a different quiz Link to Example
Data Table
If you don't include text in the answer choice it will not show up, so you can create True or False questions by leaving the other answers blank.
| Question | 1 | 2 | 3 | 4 | Correct | Hint | Hint Image | Background Image |
|---|---|---|---|---|---|---|---|---|
| (text) | (text) | (text) | (text) | (text) | (1, 2, 3, 4) | (text) | (name of image(Default is Hint-Person-Placeholder.png)) | (name of image(Default is placeholder.jpg)) |
| Example questions | Answer A | Answer B | Answer C | Answer D | 1, 2, 3 | Hint | hint-person-placeholder.png | placeholder.jpg |