Put the folder on your web server
Unzip the interactive into its own folder and copy it to a web server that serves HTTPS.
- Make a new, empty folder named like the file without
.zip, for examplestates-of-matter-1.6. Keep that name: it carries the interactive and version. - Unzip the file into that folder. You should see
index.html,package-config.js,HOSTING.txt,check.htmland the folderassets. - Copy the whole folder, unchanged, to your web server. The game then has an address such as
https://games.school.example/rls/states-of-matter-1.6/index.html. - If the folder's web address is not on your list with us yet, send it now (see What to ask us for).
You don't need to edit package-config.js. It already holds your school, our server's address and your package
settings.
- states-of-matter-1.6/
- index.html the game: point your frame here
- package-config.js your school and your settings
- check.html for you: are the files intact?
- test-host.html for you: the link test page
- rls-messages.schema.json what the game sends
- HOSTING.txt, UPDATE.txt these steps, in the folder
- manifest.json, NOTICES.txt, does-it-work.html, rls-check.js
- assets/ the game, its pictures and sound
- samples/ web.config, .htaccess, nginx.conf server settings
- brand/ logo.png only when you have set a logo
Check on your server
- The files must come from a web server over HTTPS. Opening
index.htmlstraight from a disk does not work. - On IIS, copy
samples/web.configinto the folder, next toindex.html. IIS needs it: it refuses to send file types it does not know. - On Apache or nginx, the samples (
.htaccess,nginx.conf) only make the game load faster. It works without them. - Check each sample against your server's own documentation before you use it.
Where the folder can live
The game unpacks its own files, so any host that serves plain files over HTTPS can run it. For your teachers' edits, use an address
on your school's own domain: a host's free address (such as yourschool.netlify.app) is shared by many sites, so we can't approve it. One interactive folder is 6 to 29 MB. Its largest file is about 2 MB.
| Host | Works? | Watch for |
|---|---|---|
| Your own web server (IIS, Apache, nginx) | Yes | On IIS, add samples/web.config. Use the sample for your server to load faster. |
| Amazon S3 with CloudFront | Yes | For your teachers' edits, use your own domain: we can't approve its shared cloudfront.net address. S3 alone has no HTTPS for websites; put CloudFront in front of it. Amazon's page |
| Azure Static Web Apps | Yes | For your teachers' edits, use your own domain: we can't approve its shared azurestaticapps.net address. The free plan holds 250 MB per site: three to six interactives. Microsoft's page |
| Netlify | Yes | For your teachers' edits, use your own domain: we can't approve its shared netlify.app address. Its own compression settings cannot be changed, so interactives load a little slower. Netlify's page |
| GitHub Pages | Yes | For your teachers' edits, use your own domain: we can't approve its shared github.io address. No server settings at all; interactives load a little slower. Read GitHub's limits on use first. GitHub's page |
| Cloudflare Pages | Yes | For your teachers' edits, use your own domain: we can't approve its shared pages.dev address. Refuses any file over 25 MiB (about 26 MB). An interactive's largest file is about 3 MB. Cloudflare's page |
| Google Sites, Squarespace or Wix | No | They can't hold a folder of files. They can show an interactive whose folder lives on another host, or use a class link instead. |
| Google Drive | No | Google turned off web hosting from Drive in 2016. Google's note |
| OneDrive or a SharePoint library | No | Neither serves a folder as a website. SharePoint's "HTML pages" are capped at 10 MB and block what the game needs. Microsoft's page |