I’m trying to implement a contact form for my portfolio using react and node mailer but I am new to any backend stuff. I have the client side done but now I need a way to send the input from the form to my email. My confusion is more on project structure and how to get my client side code to interact with the server side. On the server side all that’s really going on is I’ll have one api endpoint that will handle sending the form data to my email. My current directory looks something like this:
portfolio/server.js portfolio/client/ react stuff here
How would I go about getting these two to interact and which project structure is best for deploying?