Code Monkey home page Code Monkey logo

terra-telegram-bot-backend's Introduction

Terra Telegram Bot Backend

This backend is an additional module for Terra Telegram Bot and operates with terra-telegram-bot-website.

Running this project

First you need to add a necessary configuration, to do it just create a .env file out of the template.env and fill out all empty variables.

Before starting install dependencies with

npm install

Intellij run configuration is available out of the box, to start just run app.ts configuration.

Users authorization

Most of the methods in this API can be called only by users logged in via Telegram Seamless Login. You need to pass all HTTP arguments added by Telegram to use protected methods.

Api documentation

No API docs are available at the moment as this project is in early beta, for available routes just see code under /router directory.

Deployment

For deployment pm2 is used. First you have to set up your deployment with one of these command testnet and mainnet deployments available

pm2 deploy testnet.json testnet setup

or

pm2 deploy mainnet.json production setup

Then you need to connect to your machine and create an .env file from template.env in the root folder. Fill this up with your data. Now you are ready to deploy! To deploy testnet instance run

pm2 deploy testnet.json testnet

To deploy production instance run

pm2 deploy mainnet.json production

Hint: If you have uncommitted changes and pm2 blocks your deployment use --force flag.

To check how to display logs, status and other useful data see pm2 quick start guide.

terra-telegram-bot-backend's People

Contributors

mbartn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.