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.gitCOMPILER_BOT_TOKEN=<YOUR_BOTS_TOKEN>
IHaveNotComeUpWithAName=<YOUR_MINI_APPS_URL>
$ docker compose up --detachImportant
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, swiftc2, and bun3.
$ swift build --configuration release$ docker run --detach --publish 8080:80$ npm install; npm builddocker run --detach --publish 8080:80
--volume dist:/usr/share/nginx/html:ro
nginx- Use a database;
- Fetch
infofrom the database; - Dockerfile.
- Fetch
languagesfrom the backend; - The
/adminroute where I can mutate the database.
