https://github.com/cxmrykk/waze-alert-map
Store and visualise Waze Alert data on a map
https://github.com/cxmrykk/waze-alert-map
javascript sqlite static-site-generator waze
Last synced: about 1 year ago
JSON representation
Store and visualise Waze Alert data on a map
- Host: GitHub
- URL: https://github.com/cxmrykk/waze-alert-map
- Owner: Cxmrykk
- Created: 2024-06-12T02:46:21.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-24T01:29:52.000Z (over 1 year ago)
- Last Synced: 2025-04-02T10:19:56.240Z (about 1 year ago)
- Topics: javascript, sqlite, static-site-generator, waze
- Language: JavaScript
- Homepage:
- Size: 78.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Setup
```sh
# Clone the repository using git
git clone https://github.com/Cxmrykk/Waze-Alert-Map.git
cd Waze-Alert-Map
```
```sh
# Install node dependencies using NPM
npm install
```
```sh
# Create the .env configuration file from the template
# Note: you must set your ACCESS_TOKEN
# Your access token can be found here: https://account.mapbox.com/
cp .env.template .env
nano .env
```
```sh
# Running the database server (must run at least once)
# Leave this running to collect alerts over time
node index.js
# Generating the HTML/JSON template files
node generate-template.js
```
### How to use the web interface
- The HTML files are generated in the `./cache` directory by default
- Simply use any HTTP server (examples are listed below)
- [http-server](https://www.npmjs.com/package/http-server)
- [static-web-server](https://github.com/static-web-server/static-web-server)