- Install
node, andyarnornpm. - Set node to correct version (specified in
.nvmrc). - Run
yarnornpmto install dependencies. - Run below command to start dev server for an experiment:
npx parcel src/YOUR_EXPERIMENT_MODULE/index.js - Preview the experiment on Fandom websites (see the section below)
- You are all set and ready for coding. :)
- Create new folder in
srcdir with name of your module. You can copysrc/_Templateas a starting point for your experiment. Experiment module requires onlyindex.js|ts|tsxfile. - Run dev server to compile the code.
npx parcel src/YOUR_EXPERIMENT_MODULE/index.js- Open
http://localhost:1234/index.js- you will see compiled code of your experiment.
- Add Requestly extension to your browser.
- Set up a new Requestly rule:
- Open any Fandom website to verify if Requestly rule is activated and redirects a request.
- After making changes in your code, you need to reload the page.
