By: @adelabat
This application allows you to customize a digital lock for digital escape rooms. It can be used along with the escapp platform for managing educational escape rooms.
-
Open a new terminal, go to your working directory and clone this GitHub poject:
git clone https://github.com/adelabat/RESCORM_Digital_Lock cd RESCORM_Digital_Lock -
Execute the following command to install all the project dependencies in the 'node_modules' folder:
npm install
-
Execute the following command to start the development server:
npm start
The app will be available at the following URL http://localhost:8080.
The SCORM 1.2 environment will be available at http://localhost:8080/scorm12.html.
The SCORM 2004 environment will be available at http://localhost:8080/scorm2004.html. -
The development server can be stopped by pressing 'Ctrl-C'.
-
Configuration can be specified in:
app/config/config.js: Global configuration for the React application.app/config/config_lms.js: Configuration for the SCORM environments.
npm start- Start the development server.npm run production- Create a production ready build of the application in thedistfolder.npm run scorm_package- Create a production ready build of the application and package it into two SCORM packages (compliant with SCORM 1.2 and SCORM 2004) in thedist_scormfolder.npm run clean- Remove thedistanddist_scormfolders.npm run lint- Execute an eslint check.npm test- Run all tests.
title: The name of your app that will be shown on the title of the page.showUsername: Whether the student name included in the SCORM profile should be displayed or not.timeout: The time limit to guess the code (in seconds)mode: The puzzle type. It can be one of the following:Alphanumeric: Combination of letters and numbersSymbol: Combination of symbols. You can choose your own symbols by providing your own images under theassetsfolder.CombinationLock: Safe box-like digit combination. You can provide your own image by specifiyng theCombinationLockImageproperty.Padlock: Padlock-like digit combination. You can choose whether it has a metallic effect or a flat color by specifying thenonMetallicproperty.Pattern: Android-like pattern code. You can only choose numbers from 1 to 9.
theme: Theme. It must be one of the themes available in bootwatch.tip: Instructions for the user. It can be a small tip on how to use the application or a subtle clue.escapp: Whether you are using escapp to manage your escape room. In this case, escapp will verify the puzzle solution and track the user's progress. In case you are using escapp you need to provide the following:escapeRoomId: Escape room identifierpuzzleId: Puzzle identifierpuzzleLength: Number of characters in the solution (number of digits/letters/symbols)token: Escapp user e-mail
If your are not using escapp, you need to provide the following:
answer: The right code. Depending on the puzzle type it can be a combination of letters and/or numbers.successMessage: Text to display when the user provides the right answer.failMessage: Text to display when the user provides the wrong answer or runs out of time.
Additionally, you can specify which SCORM version you will be using:
scormVersion: "1.2" or "2004"