This bot shows trams locations in Ekaterinburg city using official data got from http://ettu.ru
See boot in action: @EkbTramBot
You must set tokens&keys using .env file:
BOT_TOKEN="..."
# Use next two values if you use MapQuest service
# MAP_SERVICE="MAPQUEST"
# MAP_SERVICE_CONFIG={"key": "<key>"}
#
# OR
#
# Use next two values if you use MapBox service
# MAP_SERVICE="MAPBOX"
# MAP_SERVICE_CONFIG={"accessToken": "<token>"}
ETTU_API_KEY="111"
This is your telegram bot token
There are two possible values: MAPQUEST and MAPBOX
To show map tiles and markers bot uses static Map API: https://developer.mapquest.com/documentation/static-map-api/v5/
Please get the key here: https://developer.mapquest.com/user/me/apps
Uses the MapBox service: https://docs.maptiler.com/cloud/api/static-maps/
You may gey token here: https://cloud.maptiler.com/account/keys/
I don't know, just copy this value from http://map.ettu.ru
npm i
npm build
npm start
-
Copy
docker-compose.ymlin some directory on your server -
Create
.envfile in the same directory (see.env.example) -
Build the app
docker build . -t ekb-tram-bot-app:latest- Upload image to the server
docker save ekb-tram-bot-app:latest | ssh user@server "docker load"-
Login to server via ssh
-
Go to directory with .env and docker-compose.yml
-
Up the container
docker compose up -d ekb-tram-bot-app

