I just started writing fanfiction for t he first time in years.

I’ve been working on my original novel for five years now and still feel like I’m going nowhere, so I decided to pause and write a fanfiction. Because that’s how I discovered my love of writing, I was just wondering if I should write out the fanfiction first and then post it all, or write one chapter, then post it. Does anyone have any advice on writing a fanfic, because I haven’t written a fanfic in years?