-
Notifications
You must be signed in to change notification settings - Fork 251
Manual installation of the Adapt framework
The Adapt-CLI provides a command for creating a course. The command downloads and installs the latest public release of the Adapt framework. It is the easiest way for a developer/author to set up a development environment.
There may be times when using the command line interface is unsuitable (e.g. when installing the develop branch or when installing a fork or test package). Such situations require manual installation, and the following instructions aim to help.
-
Install prerequisites.
Installation of the Adapt framework depends on Node, Git, Grunt, and the Adapt-CLI. -
Download the framework.
Download the source code from its repository on GitHub. -
Install module dependencies.
Usenpmandadaptto install required packages and plug-ins. -
Run the application.
Build the supplied sample course and start a server.
Install the following before proceeding:
Tips:
- To verify if a requirement is already installed, check for its version.
- Windows users should run these commands in Git Bash if Git was installed using default settings.
- Mac and Linux users: If you encounter permission errors when running npm commands, you can either prefix the commands with
sudo(e.g.,sudo npm install) or use nvm (Node Version Manager) to manage your Node.js installation, which avoids permission issues entirely (recommended for developers).
Download the Adapt framework as a ZIP and extract the files. Open a console interface (e.g. Git Bash, Terminal on macOS, Powershell or CMD.exe) and navigate to the extracted folder (typically adapt_framework-master, but you can safely rename this).
With the Adapt framework folder as your current working directory, run the following command:
npm install
This will install all of the package dependencies of the framework. Be patient. If any error occurs, read the output. Determine if a dependency failed to install properly, if you forgot to install one of the prerequisites, or if you require elevated permissions. If you need assistance troubleshooting, consult the GitHub Issues for troubleshooting. If this command completes successfully, run the following command:
adapt install
This will download all of the Adapt plug-ins to the correct locations in the framework.
Build the included sample course by running the following command:
grunt build
Start a server by running the following command:
grunt server
To view the course, open a browser to the following URL: http://localhost:9001
Then, to terminate the server, press ctrl+c.
- 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
- Adapt API
- Core Events
- Core Model Attributes
- Core Modules
- States and Indicators
- Right to Left (RTL) Support
- Web Security Audit
- Plugins
- Developing Plugins
- Developer's Guide: Components
- Developer's Guide: Theme
- Developer's Guide: Menu