This is code from a few years ago for a node.js "interactive" map of all things IoT around the world.
I stopped working on it and just putting it on github for my safe keeping and may look at it again.
If you clone this, it likely won't work at all so I wouldn't even bother.
I will need to push my Mongo dump as well which has all of the company and people information.
The docs/IoT Thing of Things.xlsx
is a spreadsheet of companies and products that I hadn't yet added into Mongo. Kind of a backlog if you will.
.env
file in the root folder, replacing your_key
with your Google Maps API keyGOOGLE_MAPS_API_KEY=your_key
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1
.env
fileSESSION_SECRET=your_session_secret_here
const session = require('express-session');
require('dotenv').config();
app.use(session({
secret: process.env.SESSION_SECRET,
resave: true,
saveUninitialized: true
}));
.env
to .gitignore
Old notes in docs/setup.md
API Keys
, click your keySet an application restriction
click IP Addresses
API address restrictions
add your IP from step 1countries/# countries/ca countries/canada
countries/canada/states
countries/canada/city/toronto city/toronto