-
Notifications
You must be signed in to change notification settings - Fork 250
Setting up your development environment
Before you get started with Adapt, make sure you install Node.js and Git.
All of the components you'll need can be installed with npm which comes installed with Node.js
$ npm install adapt-cli -g
$ npm install grunt-cli -gThe output framework is the generic codebase used to create e-learning content – in other words, it is the generic code that runs as part of the e-learning package in the user’s browser when working through an e-learning module based on Adapt.
You can get the latest version of the framework from our GitHub repository using the Adapt Command Line Interface.
$ adapt create courseThis will ask you to confirm the name of the course and the branch to download. A directory with the course name will be created and all the Adapt framework files will be downloaded into it.
Alternatively you can download it as a ZIP and extract it.
The output framework contains all the source files and programs required to produce your course. The output framework uses Grunt to manage the build process and run all of the grunt tasks from your output framework directory.
$ grunt buildThe build task compiles and compresses your course and prepares it for viewing and distribution. The output is located in the build directory.
To view the build package create a local server:
$ grunt serverTo emulate a scorm package offline use this instead:
$ grunt server-scormNote: to terminate the server ctrl+c
This will now open a browser and navigate to the following URL: http://localhost:9001/
N.B. If you have run the server-scorm task, navigate to this URL to emulate an LMS environment: http://localhost:9001/main.html
This allows you to test your SCO without the need for a continual upload / update / reupload cycle. Please note that as this emulation uses an iframe, it is not suitable for device testing. It is intended for testing SCORM functionality only. If you do not require SCORM functionality, please run
$ adapt uninstall contrib-spoor
$ grunt buildThe server will display the default menu of the course in your browser with the view appropriate to the device you're using. Any changes to the course will automatically be built and displayed.
Next - Creating your first course
- Framework in Five Minutes
- Setting up Your Development Environment
- Manual Installation of the Adapt Framework
- Adapt Command Line Interface
- Common Issues
- Reporting Bugs
- Requesting Features
- Creating Your First Course
- Styling Your Course
- Configuring Your Project with config.json
- Content starts with course.json
- Course Localisation
- Compiling, testing and deploying your Adapt course
- Core Plugins in the Adapt Learning Framework
- Converting a Course from Framework Version 1 to Version 2
- Contributing to the Adapt Project
- Git Flow
- Adapt API
- Adapt Command Line Interface
- Core Events
- Core Model Attributes
- Core Modules
- Web Security Audit
- Peer Code Review
- Plugins
- Developing Plugins
- Developer's Guide: Components
- Developer's Guide: Theme
- Making a theme editable
- Developer's Guide: Menu
- Registering a Plugin
- Semantic Version Numbers
- Core Model Attributes
- Adapt Command Line Interface
- Accessibility v3
- Adapt Framework Right to Left (RTL) Support
