Skip to content

Latest commit

 

History

History
70 lines (49 loc) · 1.46 KB

README.md

File metadata and controls

70 lines (49 loc) · 1.46 KB

Atlas Backend

Architecture

Run the Project

In Docker Container

# Build the Docker image
docker-compose build

# Run the Docker container
docker-compose up

# Stop the container
docker-compose down

Directly

# Generate required files

# To run the app
go run *.go

go build -o ./bin        # builds binary in ./bin
go install               # installs app in $GOBIN or $GOPATH of the system.

Development

Using docker dev container

Generating files

Update as more proto defns are added

protoc --proto_path=internal/protobufs/assets --go_out=internal/protobufs --go_opt=paths=source_relative client_server_message.proto server_client_message.proto player_data.proto other_payloads.proto game_message_payload.proto chat_message_payload.proto

Folder structure

├── bin
│   └── atlas-backend
├── go.mod
├── go.sum
├── internal        # internal packages
│   ├── game_room
│   │   ├── data_models.go
│   │   └── game_room.go
│   ├── protobufs   # protobuf defs and gens
│   │   ├── game.pb.go
│   │   └── game.proto
│   └── web_socket
│       └── websocket_handler.go
├── main.go         # entry point
├── packages        # exportable packages
├── README.md
└── tests
    └── test_client.go