Skip to content

senorbeast/atlas-backend

Repository files navigation

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

About

Go backend for Atlas multiplayer web game.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published