This folder contains the code for the Avatar Stack - a demo of how you can leverage Ably to show a list of currently online users.
Try out the live demo of the avatar stack.
- Fork or clone the Examples Repo.
- Sign up for an account on Ably and get an API KEY.
- Rename
.env.example
to.env
and fill in your API KEY in theVITE_ABLY_KEY
environment variable.- You could also use the
VITE_ABLY_KEY_AVATAR_STACK
environment variable if you wanted to use different keys for different examples.
- You could also use the
- Run
yarn
ornpm install
to install dependencies. - Run
yarn dev
ornpm run dev
and go to http://localhost:5173/avatar-stack
- Learn more about how to build your own avatar stack.
- To see what else is possible with Ably check out our other realtime examples.
Requirements (if any)