For there to be a beginning there must be a defined something to begin with and prior to that there must be nothing.
Since nothing is the absence of time and space it self we can't say how "long" it took for something to appear for all practical purposes it could be an instant or infinity - however since we can't measure time before time something must by definition appear in an instant since there is no Observer to measure anything.
So say a being or a "god"(if you will) was the 1st thing to appear out of nothing or to be more precise to 1st attain consciousness to be the 1st "observer" all he could have observed would have been him self because everything he "looked at" would instantly (by the laws of quantum mechanics) turn into something (wave collapse) that is what this is as soon as you measure something it becomes coherent.
So the primal state was one big super-position of Everything and it (suddenly) became self-coherent until attaining self-awareness and it's 1st "thought" was "I AM" which is only natural and there is absolutely nothing surprising about it.
You know the legend of Midas? The king who's touch turned everything into gold. Well that's kinda what a primal-consciousness does to chaos everything it observes turns collapses into a "solid" state however that state cannot be controlled thus this primal-consciousness would not be able to control the "creation" process it would be a "blind watchmaker" of sorts.
And this "blind watchmaker" would inevitably create "lesser" versions of him self, sort of like a fractal creating sub-fractals, which would not have it's "full" power and thanks to that would have a degree of control over creation.. the "lowest" denominator of that would be us - building machines and shaping our environment.
I say the "lowest" because we might not be the absolute lowest and it's not disparaging and there are certainly "higher" forces at work - however the "higher" you go the less freedom/control you have - so "god" level would be almost totally dominated by either pure randomness or total predictability(depending on the perspective inside/outside).
I however do not see an "end" - any kind of end would have to be a state where everything goes back to chaos - decoherence of reality.
Is such a thing possible? Even if it was, I highly doubt it could be brought on consciously so "God" would not know or could control his "time" of death, it would happen more or less randomly in the infinite(it wold stop being infinite at time of decoherence) time or reality - does "God" fear death like we?
*When I say "God" it's just for brevity and I actually mean the being at the highest possible level of Consciousness of which I assume there is only one - however "he" cannot by definition be the god of the bible or any other god any religion speaks of because the being at this level of consciousness would not be able to make directed decisions(for reasons of the quantum uncertainty and non-locality, which is tragic and ironic of sorts).