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.
NOTE: Once the app is deployed, add a Heroku Postgres
add-on.
# Install lerna globally
$ npm i -g lerna
# Bootstrap all libs
$ yarn bootstrap
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
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.
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