chore: initial project structure
This commit is contained in:
25
README.md
Normal file
25
README.md
Normal 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 | — |
|
||||
Reference in New Issue
Block a user