🚙 Bot will help to find a dream vehicle
List of supported environment variables
Name | Description |
---|---|
HOST |
Web server host |
TELEGRAM_TOKEN |
Telegram API token |
AUTO_RIA_TOKEN |
AutoRia API token |
AUTO_RIA_TOKEN |
AutoRia API token |
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
go run cmd/bot/main.go --port=80
Project released under the terms of the MIT license.