project-name
├── demo-game # a shard
│ ├── component
│ ├── event
│ ├── system
│ └── main.go
└── chat # another shard
├── component
├── event
├── system
└── main.go
This is the basic structure of a project with multiple Cardinal shards.
The component
, event
, and system
directories are where you will be spending most of your time.
The main.go
file is where everything is wired up together and is the entry point to starting your shard.
While the
component
, event
, and system
directories are not required, we encourage you to
follow it as a best practice so your project is easier to organize and navigate.