Bot
🚙 Bot will help to find a dream vehicle
Overview
List of supported environment variables
Name |
Description |
HOST |
Web server host |
PORT |
Web server port |
TELEGRAM_TOKEN |
Telegram API token |
AUTO_RIA_TOKEN |
AutoRia API token |
RECOGNIZER_URL |
Plates recognizer |
Development
Start postgres database
docker-compose up -Vd postgres
Migrate database
migrate -path=migrations -database "postgres://postgres:password@localhost/bot?sslmode=disable" up
Prerequisites:
Expose your local web server for receiving http requests
$ ngrok http 80
Export ngrok host
$ export HOST=<host>
You can run the bot with command below
$ PORT=80 go run cmd/bot/main.go
License
Project released under the terms of the MIT license.