Creating a joinable game with a join code

I’ve been working on a game that i want to be join-able via a code such as kahoot or quizzizz, any tips on how to do that?