Run g++, swiftc, and bun from Telegram!
swift vapor typescript react docker
This bot accepts as input these properties from a user:
- language (e.g. C++);
- source (e.g.
int main() { return 0; }
); - arguments (e.g.
--version
); - stdin (e.g.
vladimir
).
It processes these properties and sends back output of a program to the user.
I can’t believe I am not even in the winners list.
$ git clone https://github.com/VladimirCreator/compiler_bot.git
COMPILER_BOT_TOKEN=<YOUR_BOTS_TOKEN>
IHaveNotComeUpWithAName=<YOUR_MINI_APPS_URL>
$ docker compose up --detach
Important
It is required to specify the bot's token and the location of mini app to get this work.
See Getting Started for more information.
Dockerfile installs all required dependecies like g++
1, swiftc
2, and bun
3.
$ swift build --configuration release
$ docker run --detach --publish 8080:80
$ npm install; npm build
docker run --detach --publish 8080:80
--volume dist:/usr/share/nginx/html:ro
nginx
- Use a database;
- Fetch
info
from the database; - Dockerfile.
- Fetch
languages
from the backend; - The
/admin
route where I can mutate the database.