https://github.com/code-star/c3y
Map to show tracked lora data for KPN IoT workshop
https://github.com/code-star/c3y
Last synced: 6 months ago
JSON representation
Map to show tracked lora data for KPN IoT workshop
- Host: GitHub
- URL: https://github.com/code-star/c3y
- Owner: code-star
- License: mit
- Created: 2022-04-25T09:42:59.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-13T07:01:22.000Z (over 3 years ago)
- Last Synced: 2025-03-12T01:33:01.351Z (11 months ago)
- Language: TypeScript
- Size: 91.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# c3y
> Tiny Asset Tracker
Map to show tracked lora data for KPN IoT workshop
Runs an in-memory data store, so on restart the store will be reset and all recorded data will be lost.
Can be deployed to Azure Web App.
Runs on [Next.JS](https://nextjs.org)
## Running
1. install: `npm i`
2. build: `npm run build`
3. start server in production mode: `npm start`
4. (optional) seed with dummy data: `./postDummyData.sh`
Forward data from KPN Things to this app, running on localhost:
- KPN Things: set up a flow
- KPN Things: set destination HTTPS endpoint with https://webhook.site
- webhook.site (Tested in Firefox & Chrome, does NOT work in Safari): enable XHR Redirect
- target: http://localhost:3000/api/lora
- Content Type: application/json
- HTTP Method: POST
Deploy on Azure:
- install azcli: `brew install azure-cli`
- log into Azure, where ??? is the tenant ID from Azure Active Directory: `az login --tenant ???`
- deploy: `az webapp up --sku B1 --location westeurope` (takes about 5 minutes)
- after deployment the URL is logged
- KPN Things: set destination HTTPS endpoint with `[generated URL]/api/lora`
- inspect logs: `az webapp log tail`
- open `[generated URL]` in the browser to see the web app
## Development
- `npm run dev`