Skip to content

Web library for querying tutorons for micro-explanations of code found online.

Notifications You must be signed in to change notification settings

andrewhead/tutorons-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web library for querying tutorons for micro-explanations of code found online.

Setting up the development environment

From the main directory, run:

npm install

Running the addon

Working with a local Tutorons development server

To set the addon to look to your local Tutorons server, replace the following line in the addon/data/load-tutorons.js file:

var tutoronsConnection = new tutorons.TutoronsConnection(window);

with the lines:

var tutoronsConnection = new tutorons.TutoronsConnection(window, {
    'endpoints': {
        'wget': 'http://127.0.0.1:8002/wget',
        'css': 'http://127.0.0.1:8002/css',
        'regex': 'http://127.0.0.1:8002/regex',
        'python': 'http://127.0.0.1:8002/python',
    },
});

Running the addon

npm run build-xpi && npm run test-xpi

Deploying to a running (not test) browser

To actually deploy to your running Firefox browser, you can use this command (in conjunction with some other MDN Addon documentation I'll add later:

function pushext { wget --post-file=$1 http://localhost:8888/; }

About

Web library for querying tutorons for micro-explanations of code found online.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •