Hi everyone,
I'm developing a NodeJS app and visualizing a windy map through the API.
In my WindyInit function I want to have access to a parameter in my MongoDB Database.
To do that I wanted to require('mongoose') or require('mongodb') in the WindyInit function but it's not working. I know these are NodeJS modules but I'm using Browserify to get a working js script displaying the map.
The other solution I tried was to access a global variable written in my HTML (script JS just before the div of the windy map) in my windyInit function but once again I don't know how to do that...
Does someone have a solution ?
Thanks a lot,
Basile