bot

module
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2021 License: MIT

README

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.

Directories

Path Synopsis
cmd
bot
pkg
bot
domain/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
store/mockstore
Package mockstore is a generated GoMock package.
Package mockstore is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL