Code Monkey home page Code Monkey logo

telegram-workflow's Introduction

Telegram Workflow

A self hosted telegram automation app that allows you to create workflows to automate forwarding messages. Workflows consist of selecting a source chat and destination chats which are forwarded to.


Deployment

Deploy

NOTE: Once the app is deployed, add a Heroku Postgres add-on.


Setup

# Install lerna globally
$ npm i -g lerna

# Bootstrap all libs
$ yarn bootstrap

Development

Order of imports:

Organise the order of imports in files to make it more readable and understandable at first glance what's being used.

client:

  • Framework (VueJS e.g. vue)

  • Third party (npm libraries e.g. lodash, axios, vuestic-ui etc)

  • First party (project libraries e.g. @shared-core)

  • Current project's source code (e.g. @/components/ ./some-folder ./some-file)

api:

  • Framework (Nestjs e.g. @nestjs/common)

  • Third party (npm libraries e.g. lodash etc)

  • First party (project libraries e.g. @/shared-core)

  • Current project's source code (e.g. ./some-folder ./some-file)

You have two options you can use for developing:

  • develop inside of a container using Remote-Containers
  • docker-compose

Devcontainers

Using VSCode, run the command Remote-Containers: Open Folder in Container... which will spin up a remote container with all the necessary extensions required for you to develop inside of the container along with the source code.

Docker Compose

Development:

# Runs docker compose in development mode
$ docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d

# To view the config of your running docker compose setup
$ docker-compose config

# To stop the docker compose services
$ docker-compose -f docker-compose.yml -f docker-compose.dev.yml stop

# To remove the docker compose services along with any volume mounts
$ docker-compose -f docker-compose.yml -f docker-compose.dev.yml down -v

Production:

# Runs docker compose in production mode.
$ docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d

# To view the config of your running docker compose setup
$ docker-compose config

# To stop the docker compose services
$ docker-compose -f docker-compose.yml -f docker-compose.prod.yml stop

# To remove the docker compose services along with any volume mounts
$ docker-compose -f docker-compose.yml -f docker-compose.prod.yml down -v

Terms of Use

Heroku


telegram-workflow's People

Contributors

m-t-a97 avatar

Watchers

 avatar

telegram-workflow's Issues

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.