heroiclabs / nakama-rs

Apache License 2.0
69 stars 13 forks source link

Add register example #3

Closed marot closed 3 years ago

marot commented 3 years ago

This PR adds a simple example of how to register a user.

In order to run examples, a Nakama instance is required, so I copied the docker-compose file that fishgame-macroquad is using and modified the README.md.

To avoid hardcoding the port into every example, I moved it to a constant. Should we move "defaultkey" and "127.0.0.1" there too?