Skip to content

opencars/bot

Repository files navigation

Bot

Report

🚙 Bot will help to find a dream vehicle

Overview

Architecture Overview

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

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

go run cmd/bot/main.go --port=80

License

Project released under the terms of the MIT license.