This question is a bit too broad and unspecific. Do you generate one chunk yet? I assume your question is how to manage the chunks rather than generating (take a look at the minecraft example)
To manage them you can work with a simple raster coordinate system what i guess minecraft does work with too. But it is unclear where you’re stuck at and unclear what you expect for help.