Read the statement by Michael Teeuw here.
Help developing first module, displaying webscraped text.
-
@enderflop nice start…
sorry, yuou can’t do require() in the browser side (dining-hall.js)
only n the server side (node_helper)so the layout looks right… and you’ve got the flow correct…
send request to node_helper
it processes, gets data
sends back to modulename.js
and then it does updateDom()
and getDom() builds the html /dom content… -
@cowboysdude mmpm is another module… disable that in config.js for now
module: mmpm,
disabled: true -
@enderflop i tested your module, a couple tiny changes
submitted a PR with the updates…
-
@sdetweil Hey, sorry for the late response. I accidentally took the screenshot of mmpm but the same error was coming up with dining-hall lol that’s a mistake. I’ll take a look at the PR and see how it goes, thanks!
-
Got it to work! Thanks for the PR @sdetweil and the example webscraping code @cowboysdude
-
@enderflop cool
key here is module name = foldername = filename = register name
and node_helper.js has to be in the same folder