Socket
Book a DemoInstallSign in
Socket

github.com/borislavv/translator-telegram-bot

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/borislavv/translator-telegram-bot

Source
Go
Version
v0.9.9
Version published
Created
Source

Translator-telegram-bot

Author: Glazunov Borislav

Github: github.com/Borislavv | Gitlab: gitlab.com/Zendden

Email: glazunov2142@gmail.com | Phone: +7(904)-939-89-83 (Telegram)

Installation and running (Actual)

  • Choose the target configuration file and fill it. Config files path: root_app_dir/config and also you need fill the .env.

  • Install the Docker (with compose, if you building it from source) if you have not.

  • Change directory to the project root.

  • Build images if you didn't it before and up containers:
        [Build and Up]: docker-compose up --build
        [Just Up]: docker-compose up

  • Now, you can use the bot and his lounch dashboard on http://localhost:8000/.

Installation and running (Legacy)

  • Choose the target configuration file and fill it. Config files path: root_app_dir/config.

  • Install golang (optional, you can run you app with binary file), but you will need to run migrations, then install it.

  • Migrations (database in: utf8_general_ci):
        UP : migrate -database "mysql://user:pass@tcp(localhost:3306)/translatortelegrambot" -path migrations up
        Down: migrate -database "mysql://user:pass@tcp(localhost:3306)/translatortelegrambot" -path migrations down

  • Compile executable file run it or just run the code (in the second case, binary file will be compiling and remove after all):
        4.1 Compile and run:
            Compiling:
                - cd cmd/app
                - go build
            Runnig:
                - ./main --config-path ./../../config/.env.dev.toml
        4.2. Run without compiling (actualy 'with', but you will not see it):
            Running:
                - go run cmd/app/main.go --config-path config/.env.dev.toml

FAQs

Package last updated on 01 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts