-
Notifications
You must be signed in to change notification settings - Fork 40
Structure
Aldo edited this page Mar 13, 2018
·
8 revisions
This section describes the file structure of the RESCORM boilerplate.
File/Folder | Description |
---|---|
app | This folder contains the files of the React application. |
app/assets | This folder contains the resources of the application (images, fonts, css files, ...) |
app/assets/images | This folder contains the image files. |
app/assets/scss | This folder contains the CSS and SASS files. |
app/components | This folder contains the React components of the app. |
app/components/ReduxProvider.jsx | It's the 'react-redux' provider component. |
app/components/App.jsx | It's the main screen of the application. |
app/components/FinishScreen.jsx | It's the screen shown to the user when finishing the app. |
app/components/Header.jsx | It's a header that shows some basic information (progress measure, score, ...). It's intended for development purposes. |
app/components/SCORM.jsx | It's a non-renderizable component that handles the connection and usage of the SCORM API. |
app/components/Quiz.jsx | This component contains a full example of a Quiz build using the boilerplate. The rest of components (MCQuestion, MCQuestionChoice, QuestionButtons, ...) contained in the app/components folder belong to this example. |
app/config/ | This folder contains configuration files. |
app/config/config.js | See the configuration section of the Wiki for details. |
app/config/config_lms.js | See the configuration section of the Wiki for details. |
app/config/locales.js | This file contains the text of the application in all available languages. |
app/config/samples.js | This file defines a Quiz in JSON format to be loaded by the application. |
app/constants/ | This folder contains files that define constants. |
app/constants/constants.jsx | This file defines constants for the application (e.g. initial state). |
app/reducers | This file contains the actions and reducers of the React-Redux application. |
app/reducers/actions.jsx | This file defines the actions of the application. |
app/reducers/reducers.jsx | This file combines all the reducers of the application and defines its global state. |
app/reducers/_name_Reducer.jsx | This file defines the reducer called name. |