chore: initial project structure

This commit is contained in:
2026-05-23 17:57:37 +03:00
commit 551c75a232
13 changed files with 94 additions and 0 deletions

25
README.md Normal file
View File

@@ -0,0 +1,25 @@
# MrixsCraft Server
Minecraft серверная часть на Go (net/http + PostgreSQL).
## Сборка
```bash
go build -o mrixscraft-server ./cmd/server
```
## Запуск
```bash
export SERVER_PORT=8080
export DATABASE_URL="postgres://user:pass@localhost:5432/mrixscraft"
go run ./cmd/server
```
## Переменные окружения
| Переменная | Описание | По умолчанию |
|------------|----------|--------------|
| `SERVER_PORT` | Порт HTTP-сервера | `8080` |
| `DATABASE_URL` | DSN PostgreSQL | — |