Creating Next.js Frontend and Connecting to the Backend