Build it from scratch so that you can learn the ins and outs of the languages and frameworks, then use AI to help speed things up once you're more familiar with the code. You'll be able to find the places where AI is hallucinating much better once you become a better developer.