Server (Rust/Cargo)
- Diesel (Dependencies required, see below)
By default diesel CLI depends on the following client libraries:
- libpq for the PostgreSQL backend
- libmysqlclient for the Mysql backend
- libsqlite3 for the SQLite backend
# Clone the project directory
git clone https://github.com/Cxmrykk/Waze-Heatmap.git
cd Waze-Heatmap/
# Run Diesel setup (Make sure cargo is in $PATH for Diesel to work)
cd server/
cargo install diesel_cli
diesel setup
# Modify Config.toml (Alternative editors: nano, code, etc)
vim Config.toml
cd ../ # Exit server directory
cd client/
npm install
cd ../ # Exit client directory
#!/bin/bash
export HEATPATH=/path/to/project/source
screen -dmS heatmap-client bash -c 'cd $HEATPATH/client && exec node server.js'
screen -dmS heatmap-server bash -c 'cd $HEATPATH/server && exec cargo run'
- Alert:
POLICE
by default (Inspect element on waze.com and reverse engineer the geolocation API response in the network tab) - Top/Bottom: Longitude range (South)
- Left/Right: Latitude range (East)
alert = "POLICE"
interval = 1200
top = -10.683
bottom = -43.633
left = 113.15
right = 153.633