Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mdvanes/tubestarjs
Show data from Open APIs for Dutch public transport
https://github.com/mdvanes/tubestarjs
functional-programming nodejs opendata streams
Last synced: 3 days ago
JSON representation
Show data from Open APIs for Dutch public transport
- Host: GitHub
- URL: https://github.com/mdvanes/tubestarjs
- Owner: mdvanes
- Created: 2023-03-25T14:42:38.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-14T09:33:52.000Z (over 1 year ago)
- Last Synced: 2024-01-27T03:06:42.486Z (10 months ago)
- Topics: functional-programming, nodejs, opendata, streams
- Language: TypeScript
- Homepage:
- Size: 4.43 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tubestar.js
Show data from Open APIs for Dutch public transport.
Data source: https://data.ndovloket.nl/REALTIME.TXT
Stack: Express, Server Side Events, Zero MQ bindings.
[Converts](./src/main/rd2wgs.ts) RD (Rijksdriehoek) to WGS 84 (Latitude & Longitude coordinates)
![Screenshot](screenshot.png "Screenshot")
## Usage
- development: `npm start` and go to http://localhost:5173/
- production: `npm build`, `npm serve` and go to http://localhost:3000/
- docker: `docker-compose up` and go to http://localhost:3000/## AWS Amplify
- sign in to your AWS account
- `amplify configure` https://docs.amplify.aws/cli/start/install/#configure-the-amplify-cli
- eu-west-1 > create user `tubestarjs` > attach policies directly: `AdministratorAccess-Amplify` > create > security credentials / access keys / create access key (CLI)
- `amplify init`
- `amplify add api` https://docs.amplify.aws/lib/restapi/getting-started/q/platform/js/#automated-setup-create-new-rest-api > REST
- `amplify push`
- TODO amplify hosting add / amplify publish
- `amplify hosting add`
- "Hosting with Amplify Console"
- Continuous deployment (Git-based deployments)
- browser opens, connect to Github repo
- select environment "dev", check "Full-stack CI/CD allows you to continously deploy frontend and backend changes on every code commit", create and add a new role
- `amplify publish`
- TODO https://eu-west-1.console.aws.amazon.com/amplify/ > tubestarjs > Hosting environments
- Connect to the Github repo
- Configure output dir "dist"
- Continous Deployments are set up, so on changes to the repo (on the main branch), it will be redeployed by Amplify## TODO
- add second event source for HTM (multiple topics in one call?)
- use fp-ts and/or RxJS observable
- https://github.com/dekguh/Leaflet.MoveMarker
- provide EventSource from AWS Amplify