Introduction
Self-hosting is best for teams with technical expertise. It is the most flexible deployment option, but it requires the most technical knowledge: familiarity with web development and server administration.
Self-hosting requires three steps:
- Installing pre-requisites and the m2c2kit Command Line Interface (CLI).
- Assessment configuration.
- Hosting a static web site for the assessments on a server or cloud service.
In a static website, a set of files (HTML, CSS, JavaScript, images, fonts) tells a participant's browser how to run the assessment. These files are sent to the browser through a server, but the server simply sends these files and does not do any processing. Because the server only sends files, static websites are extremely simple to deploy and very inexpensive to run.
Prerequisites
Install the following software. You will need administrative permissions for your computer.
- Node.js (version >=18; version 20 LTS recommended). Required.
- Visual Studio Code. Recommended.
- Google Chrome. Recommended.
- Git. Recommended.
Installing the m2c2kit Command Line Interface (CLI)
m2c2kit provides a CLI to make it easier to create and deploy m2c2kit apps.
It is convenient if you install the CLI globally. You need to do this only once. From your command line:
npm install -g @m2c2kit/cli
😕 Problems?
If you saw a message similar to Command 'npm' not found
or 'npm' is not recognized as an internal or external command, operable program or batch file.
, make sure you installed Node.js.
If you ever need to upgrade the CLI to its latest version, you can run:
npm install -g @m2c2kit/cli@latest