A Telegram bot featuring the Super Stack Attack game - an exciting game accessible through Telegram.
- Go 1.19 or higher
- Docker and Docker Compose
- Make
- Node.js and npm (for frontend build)
- PostgreSQL (if running without Docker)
- Clone the repository:
git clone <repository-url>
cd stackattackgamebot- Create environment variables file:
cp .env.example .env- Edit the
.envfile by adding the required environment variables:
TELEGRAM_BOT_TOKEN- your Telegram bot token- Other necessary environment variables
- Launch the project using Docker Compose:
docker-compose up -dInstall Go dependencies:
go mod downloadInstall Node.js dependencies:
npm installIf you're using local PostgreSQL:
cd dbshell
./db.shgulp buildmake runcmd/- application entry pointinternal/- internal application logicapi/- HTTP API handlersmodels/- data modelsrepository/- database operationsservice/- business logictelegram/- Telegram API integration
web/- frontend applicationcss/- stylesjs/- JavaScript codesounds/- sound effectsimages/- imagestemplates/- HTML templates
makeormake build- build for current architecture and OSmake linux- build for Linux x86_64make run- local build and runmake clean- remove built application and frontendmake docker- build and run in dockermake docker-rebuild- rebuild and run in dockermake docker-clean- stop and remove from docker
Telegram бот с игрой Super Stack Attack - увлекательная игра, доступная через Telegram.
- Go 1.19 или выше
- Docker и Docker Compose
- Make
- Node.js и npm (для сборки фронтенда)
- PostgreSQL (если запускаете без Docker)
- Клонируйте репозиторий:
git clone <repository-url>
cd stackattackgamebot- Создайте файл с переменными окружения:
cp .env.example .env- Отредактируйте
.envфайл, добавив необходимые переменные окружения:
TELEGRAM_BOT_TOKEN- токен вашего Telegram бота- Другие необходимые переменные окружения
- Запустите проект через Docker Compose:
docker-compose up -dУстановите Go зависимости:
go mod downloadУстановите Node.js зависимости:
npm installЕсли вы используете локальную PostgreSQL:
cd dbshell
./db.shgulp buildmake runcmd/- точка входа приложенияinternal/- внутренняя логика приложенияapi/- HTTP API handlersmodels/- модели данныхrepository/- работа с базой данныхservice/- бизнес-логикаtelegram/- интеграция с Telegram API
web/- фронтенд приложенияcss/- стилиjs/- JavaScript кодsounds/- звуковые эффектыimages/- изображенияtemplates/- HTML шаблоны
makeилиmake build- сборка для текущей архитектуры и ОСmake linux- сборка для Linux x86_64make run- локальная сборка и запускmake clean- удаление собранного приложения и фронтэндаmake docker- сборка запуск в докереmake docker-rebuild- пересборка и запуск в докереmake docker-clean- останов и удаление из докера