https://github.com/asynkron/realtimemap-go
https://github.com/asynkron/realtimemap-go
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/asynkron/realtimemap-go
- Owner: asynkron
- License: apache-2.0
- Created: 2021-10-24T10:14:36.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-29T19:49:35.000Z (over 1 year ago)
- Last Synced: 2023-11-29T20:40:58.463Z (over 1 year ago)
- Language: Go
- Size: 1.89 MB
- Stars: 46
- Watchers: 4
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Real-time Map
_Real-time Map_ displays real-time positions of public transport vehicles in Helsinki. It's a showcase for Proto.Actor - an ultra-fast distributed actors solution for Go, C#, and Java/Kotlin.
_This repository contains the Go version of the sample_
The app features:
* Real-time positions of vehicles.
* Vehicle trails.
* Geofencing notifications (vehicle entering and exiting the area).
* Vehicles in geofencing areas per public transport company.
* Horizontal scaling.The goals of this app are:
1. Showing what Proto.Actor can do.
1. Presenting a semi-real-world use case of the distributed actor model.
1. Aiding people in learning how to use Proto.Actor.**[Find more about Proto.Actor here.](https://proto.actor/)**

## Running the app
Prerequisites:
1. Go 1.18+
1. node.js 17+Configure Mapbox:
1. Create an account on [Mapbox](https://www.mapbox.com/).
1. Copy a token from: main dashboard / access tokens / default public token.
1. Paste the token in `frontend\src\config.ts`.Start Backend:
```
cd backend
go run main.go
```Start frontend:
```
cd frontend
npm install
npm run serve
```The app is available on [localhost:8080](http://localhost:8080/).
## How does it work?
Please refer to the [.NET version README](https://github.com/asynkron/realtimemap-dotnet#how-does-it-work) for a detailed description of the architecture.